Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Why is the base class constructor called before the derived class and the derived class destructor called before based class destructor? Please I need brief explanation on this.
2 ответов
+ 1
it is look like very simple if you relate in real life..suppose base class like parents and derive as a child
0
yep, that is pretty real life scenario, just like you come from your parents and your parents are suppose to go before u