Which syntax for class definition is wrong

By Rebecca
0 Min Read

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) student class{ };

Which syntax for class definition is wrong

Read more: Multimeter can be used as an ammeter by

Posted by Rebecca
Follow:
Rebecca is an Independent content writer for breldigital, She writes content on any given topic. She loves to write a case study article or reviews on a brand, Be it any topic, she nails it