1.

Write the syntax and example for class declaration.

Answer»

Syntax: classname objectname1, objectname2, …. ,objectname………… n ;
For example, Largest ob1,ob2; //object declaration will create two objects ob1 and ob2 of largest class type.



Discussion

No Comment Found