c***g 发帖数: 472 | 1 I know that struct is identical as class in C++ except the default access
level.
So... the struct has constructor destructor and copy constructor ? |
s***e 发帖数: 793 | 2 sure, struct has every thing. virtural function , function overloading ,
operator overloading .
another issue is that the struct inheritance is public inheritance by
default.
【在 c***g 的大作中提到】 : I know that struct is identical as class in C++ except the default access : level. : So... the struct has constructor destructor and copy constructor ?
|
c***g 发帖数: 472 | 3 what's the default inheritance of class?
【在 s***e 的大作中提到】 : sure, struct has every thing. virtural function , function overloading , : operator overloading . : another issue is that the struct inheritance is public inheritance by : default.
|
t****t 发帖数: 6806 | 4 class/struct Child : {default} Parent {
//if (keyword == class) default=private;
//else default=public;
};
【在 c***g 的大作中提到】 : what's the default inheritance of class?
|