+3 votes
in Class 12 by kratos

Give the general syntax for defining classes and objects.

1 Answer

+2 votes
by kratos
 
Best answer

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.

...