Which of the following are specific rules for naming of constructor?
a) same name as class
b) have no return type
c) both a & b
d) none of these
How many types of constructors in OOP?
a) one
b) two
c) three
d) four
Explanation: default constructor, user define constructor
The constructor that accepts no parameters and reserves memory for an object is called….
a) user-define constructor
b) default constructor
c) default copy constructor
d) none of these
The constructor that accepts parameter to initialize the data member of an object is called….
a) user-define constructor
b) default constructor
c) default copy constructor
d) none of these
Which of the following is not a type of Constructor?
a) user-define constructor
b) default constructor
c) default copy constructor
d) friend constructor
Constructors are commonly used for
a) constructing program
b) running classes
c) initializing objects
d) all of these