New course! Every coder should learn Generative AI!
Try a free lesson0
Are constructors inherited by (all) sub-classes?
1 Answer
+ 1
no, they are not inherited, but base class constructors are called by the derive class before calling their own constructor when a object of derive class is created.