Hi, I ran into a problem while accessing an object,
in my program there are 2 classes of class A and B
class b has the name of a member variable that stores private.and gettes / setter functions for accessing this variable (bcoz - the variable is private).
in class A, has a member variable, an object of class B b (private). And I used getter to get this object outside the class.
now I want to set the name of object b using an object of class a. so I created the following code, but I didnot work.
please help me solve this.
// GetObject.cpp : Defines the entry point for the console application. //
source share