KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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 iData of an object say obj1 which is an instance of class A ? How to change or manipulate the iData of an object obj1 ? Note : Don't use friend .
Tags (comma-separated)
Save Edits
Cancel