1. A constructor is called whenever
an object is declared
an object is used
a class is declared
a class is used
You must be logged in to post a comment.
2. Which of the following remarks about the differences between constructors and destructors are correct ?
Constructors can take arguments but destructors cannot.
Constructors can be overloaded but destructors cannot be overloaded.
Destructors can take arguments but constructors cannot.
Both (a) and (b)
3. Choose the correct statements.
A destructor is not inherited
A constructor cannot be called explicitly
A constructor is not inherited
All of these
UGC NET PAPER 1
UGC NET Management
UGC NET COMPUTER SCIENCE
UGC NET COMMERCE
GATE COMPUTER SCIENCE
CFA Level 1
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login