Which syntax for class definition is wrong?
A. class student{ };
B. student class{ };
C. class student{ public: student(int a){ } };
D. class student{ student(int a){} };
Answer:B
Which syntax for class definition is wrong?
A. class student{ }; B. student class{ }; C. class student{ public: student(int a){ } }; D. class student{ student(int a){} };