Struct inheritance in C++


Question

Can a struct be inherited in C++?

1
153
12/15/2017 7:42:48 PM

Yes, struct is exactly like class except the default accessibility is public for struct (while it's private for class).

272
6/11/2009 3:44:17 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon