What is member variable?

Member variables defined inside a class. Data of member variables will be invisible to the outside of the class and can be accessed via member functions. These variables are called attribute of the object once an object is created.

Suggest An Answer

No suggestions avaliable!

Latest post from oops interview questions

Ask Question