How to make a class A object a member of class B?
Now I will clarify my point:
class A { } class B { private: A A_object; public: B(){ this->A_object = /* Что мне написать, чтоб в конструкторе присвоить переменной A_object объект класса A? */ } }
I realize that the question is stupid. But I am new to these languages, I used to write only in python, and then to create a class object, you just need to write A () (where A is the name of the class). Well, in C ++, I do not know.