クラスの継承について学習していますが、別のクラスによってプライベートに継承されたクラスへのポインターを作成する方法を知りたいですか? 以下に簡単な例を含めました。この質問への回答を手伝ってくれた人々に感謝します。
class A: private std::string
{
public:
A(){}
~A(){}
void func1()
{
// I want a pointer that points to the std::string object. Then I will use that pointer in this function
}
};