This class definition (header file) has 5 errors. Identify them bearing in mind that not all errors will cause a compiler or runtime failure, some may just be bad design.
|
privete should be private, it should be followed by a colon, ie private: and the variable int age should end with a semi colon as such int age;. I think a fourth error might be that the normal convention of giving the class a name which begins with an upper case letter has not been followed, ie class Human instead of class human, could that be considered bad design? I am struggling to find a fifth error, I hope someone can point me in the right direction.| I think a fourth error might be that the normal convention of giving the class a name which begins with an upper case letter has not been followed |