0

Member variable

could someone tell me what member variable is? I searched for it and still feel confused.

30th Jul 2020, 7:30 AM
Zhengrong Yan
Zhengrong Yan - avatar
1 Odpowiedź
+ 5
Member variables are variables defined in a class' body, but not inside one of the member functions. class A { int number; // member variable }
30th Jul 2020, 7:34 AM
Ipang