S
sam
Hi,
See this example of class:-
class a{
private:
int o,t;
public:
a( ) { };
a(int s,int g)
{o=s;
t=g;
}
};
My question is see o=s; and t=g;
What we are doing this we are inserting the public value to private
value or converting public to private.I new to c++ programming but I
want to understand the logic behind this or the technique behind
this(Simply I curious about how this work? )
Thanks for advance.
See this example of class:-
class a{
private:
int o,t;
public:
a( ) { };
a(int s,int g)
{o=s;
t=g;
}
};
My question is see o=s; and t=g;
What we are doing this we are inserting the public value to private
value or converting public to private.I new to c++ programming but I
want to understand the logic behind this or the technique behind
this(Simply I curious about how this work? )
Thanks for advance.