Give the general syntax for defining classes and objects.
The syntax of a class definition:
Syntax: classname objectname1, objectname2, …. ,objectname……………. n; For example, Largest ob1,ob2; //object declaration will create two objects ob1 and ob2 of largest class type.