New course! Every coder should learn Generative AI!
Try a free lesson+ 4
Can structures perform inheritance as classes do?
2 Answers
+ 3
Yes they can.
Structures inherit publicly while classes inherit privately by default.
+ 2
yes
struct A { };
struct B : A { };
struct C : B { };