Which of the following class allows to declare only one object of it?
a) abstract class
b) virtual class
c) singleton class
d) friend class
Which of the following are included in body of class?
a) data members
b) member function
c) both a & b
d) none of these
How many types of access specifier in OOP?
a) one
b) two
c) three
d) four
Explanation: private specifier, public specifier, protected specifier
The
collection of data and function is called……
a) object
b)
data members
c) function
d) parameter
In C++, the class variables are called as……
a) functions
b) constant
c) object
d) methods
Which of the following is the correct syntax of object?
a) object-name class-name;
b) class-name object-name;
c) class-name [];
d) all of these