Which among following is correct way of declaring object of a class ?
A. Classname Objectname;
B. Class Classname Objectname;
C. Class Classname Object Objectname;
D. Classname Object Objectname;
Answer:A
Which among following is correct way of declaring object of a class ?
A. Classname Objectname; B. Class Classname Objectname; C. Class Classname Object Objectname; D. Classname Object Objectname;