...
Question 5973 – UGC NET CS 2009 Dec-Paper-2
November 12, 2023
Question 10853 – Properties
November 12, 2023
Question 5973 – UGC NET CS 2009 Dec-Paper-2
November 12, 2023
Question 10853 – Properties
November 12, 2023

Question 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;
A
Classname objectname;
B
Class classname obj objectname;
C
Class classname obj objectname;
D
Classname obj objectname
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!