I have a class A as mentioned below:-
class A{
int iData;
};
I neither want to create member function nor inherit the above class A nor change the specifier of iData.
My doubts:-
- How to access
iDataof an object sayobj1which is an instance ofclass A? - How to change or manipulate the
iDataof an objectobj1?
Note: Don't use friend.