McqMate
| Q. |
What is a constructor? |
| A. | a class automatically called whenever a new object of this class is created. |
| B. | a class automatically called whenever a new object of this class is destroyed. |
| C. | a function automatically called whenever a new object of this class is created. |
| D. | a function automatically called whenever a new object of this class is destroyed. |
| Answer» C. a function automatically called whenever a new object of this class is created. | |
View all MCQs in
Object Oriented Programming (OOP)No comments yet