C++ how to call a parent class method from contained class? -
I am trying to call the parent class method from the contained object, but there is no luck with the following code. What is the standard way to do this?
I have searched around and it works for inherited things, but not for the things that are inherent, can it call a parent class too? Or is it called a swami class?
class guardian {private: child girl; Public: Nothing to do (); } Class child {public: zero octuring (); } Zero Child :: doOtherThing () {Generator :: doSomething (); }
There is no special access to that class in an embedded object, , And does not know the generality in it that it is for example: -
class children {public: zero doOtherThing (parent & amp; nbsp; p); You need to pass a reference or a class to an indicator in a category; }; Zero Child :: doOtherThing (Parent and P) {p.doSomething (); }
Comments
Post a Comment