l*****d 发帖数: 359 | 1 it seems that struct and class are equivalent in c++ except for that the
default access for the member of a class is private while for that of a
struct is public.
My question is: can a struct inherit from a class, and vise versa? | S*********g 发帖数: 5298 | 2 give it a try
【在 l*****d 的大作中提到】 : it seems that struct and class are equivalent in c++ except for that the : default access for the member of a class is private while for that of a : struct is public. : My question is: can a struct inherit from a class, and vise versa?
|
|