Which of the following is the correct syntax for user-define constructor?
a) class obj (50,10);
b) class obj [50,10];
c) class obj {50,10};
d) none of these
Using more than one constructor in the same class is called….
a) user-define constructor
b) default constructor
c) constructor overloading
d) none of these
Which of the following used to deallocate memory and do other cleanup for a class object?
a) constructor
b) destructor
c) access specifier
d) none of these
What are the specific features of destructor?
a) cannot take argument
b) preceded by tilde symbol
c) has no return type
d) all of these
What is the correct format for destructor?
a) ~ A()
b) @ A()
c) # A()
d) % A ()
Inheritance and Polymorphism