Question: A derived classs constructor explicitly invokes its base classs constructor, but a derived classs destructor cannot invoke its base classs destructor. Why does this apparent
A derived class’s constructor explicitly invokes its base class’s constructor, but a derived class’s destructor cannot invoke its base class’s destructor. Why does this apparent asymmetry make sense?
Step by Step Solution
3.43 Rating (153 Votes )
There are 3 Steps involved in it
Constructor In objectoriented programming a constructor is a special method of the class that has ... View full answer
Get step-by-step solutions from verified subject matter experts
