The answer for 2nd MCQ of OOPS is C.
My doubt is for option A. Can’t a constructor call member function of its class.
Here’s a link to my code where I think it’s possible to do so.
MCQ-OOP Question2
Hello @isa67719,
Yes, member functions can be called inside the constructor.
The correct option is c)
Because dynamic constructor is used to allocate the memory to the objects at the run time.
Memory is allocated at run time with the help of ‘new’ operator.
Hope, this would help.
Give a like, if you are satisfied.