Q. What is a constructor? (Solved)
1. a class automatically called whenever a new object of this class is created.
2. a class automatically called whenever a new object of this class is destroyed.
3. a function automatically called whenever a new object of this class is created.
4. a function automatically called whenever a new object of this class is destroye
- c. a function automatically called whenever a new object of this class is created.