Rouge Mouta / Publications
Forum
How to implement a class member which is a instance of the class I define: Get "wrong parameters count"
class A { public : A(){}; }; class B { private : A a; public : B(): a(A()) {}; }; Hi community, I'm trying to have a class member which is a instance of the class I define. (In this code, trying to have a member "A a" in the class "B") When I compile it, result is