A constructor is called whenever
A. | an object is declared |
B. | an object is used |
C. | a class is declared |
D. | a class is used |
Option: A Explanation : Click on Discuss to view users comments. |
Which of the following remarks about the differences between constructors and destructors are correct ?
A. | Constructors can take arguments but destructors cannot. |
B. | Constructors can be overloaded but destructors cannot be overloaded. |
C. | Destructors can take arguments but constructors cannot. |
D. | Both (a) and (b) |
Option: D Explanation : Click on Discuss to view users comments. |
Choose the correct statements.
A. | A destructor is not inherited |
B. | A constructor cannot be called explicitly |
C. | A constructor is not inherited |
D. | All of these |
Option: D Explanation : Click on Discuss to view users comments. |
Syllabus covered in this section is-
This Section covers OOPS Questions Answers .These questions can be used for the preparation of various competitive and academic exams like
Who can benefit
Various Search Terms Used For This Section Are