UGC NET CS 2009 Dec-Paper-2
November 12, 2023
OOPS
November 12, 2023
UGC NET CS 2009 Dec-Paper-2
November 12, 2023
OOPS
November 12, 2023

OOPS

Question 13
Which among the following is the correct way of declaring object of a class
A
Classname objectname;
B
Class classname obj objectname;
C
Class classname obj objectname;
D
Classname obj objectname
Question 13 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;
Correct Answer: A
Question 13 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;
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x