Question 5973 – UGC NET CS 2009 Dec-Paper-2
November 12, 2023Question 10853 – Properties
November 12, 2023Question 10852 – Properties
Which among the following is the correct way of declaring object of a class
Correct Answer: A
Question 12 Explanation:
The correct way of declaring object of a class is
Classname objectname;
For example ,let there be some class of name Area. So we can declare object of Area class like,
Area A1;
Classname objectname;
For example ,let there be some class of name Area. So we can declare object of Area class like,
Area A1;
Classname objectname;
Class classname obj objectname;
Class classname obj objectname;
Classname obj objectname
Subscribe
Login
0 Comments