How constructors are different from other member functions of the class?
A. Constructor has the same name as the class itself
B. Constructors do not return anything
C. Constructors are automatically called when an object is created
D. All of the mentioned
Answer:D
How constructors are different from other member functions of the class?
A. Constructor has the same name as the class itself B. Constructors do not return anything C. Constructors are automatically called when an object is created D. All of the mentioned