Valid class definition - C++ basic concepts
Q. class TEST
{
private:
int roll_no;
public:
int age;
char name[20];
private:
int grade;
protected:
char gender[20];
private:
private:
int m1, m2, m3;
};
In general view, is this class definition valid?
- Published on 17 Jul 15a. Yes
b. No
ANSWER: Yes