Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualHodgman

Posted 06 January 2013 - 11:29 PM

Yes.

 

As a pointer:

a* GetA() {return &MyObject;}

MyB.GetA()->DoSomethingToMyObject();

 

or as a reference:

a& GetA(){return MyObject;}

MyB.GetA().DoSomethingToMyObject();


#1Hodgman

Posted 06 January 2013 - 11:28 PM

Yes.

 

As a pointer:

a* GetA() {return &MyObject;}

MyB.GetA()->DoSomethingToMyObject();

 

or as a reference:

a& GetA(){return MyObject;}

MyB.GetA().DoSomethingToMyObject();


PARTNERS