Which among the following is correct?
A. class student{ public: int student(){} };
B. class student{ public: void student (){} };
C. class student{ public: student{}{} };
D. class student{ public: student(){} };
Answer:D
Which among the following is correct?
A. class student{ public: int student(){} }; B. class student{ public: void student (){} }; C. class student{ public: student{}{} }; D. class student{ public: student(){} };