M
mangalalei
A static data member can be of the same class type as that of which it
is a member. A nonstatic data member is restricted to being declared as
a pointer or a reference to an object of its class.
And I haved used the sizeof operator to test a class which has a static
data member, the class size is all the nonstatic data member except the
static data member.
In compiler's view, is the static data member constructed after the
whole class constructed??And is the static data member just a "global"
variable in the class scope???
In compiler's view, the static data member actually is not the class
member, is that true???
is a member. A nonstatic data member is restricted to being declared as
a pointer or a reference to an object of its class.
And I haved used the sizeof operator to test a class which has a static
data member, the class size is all the nonstatic data member except the
static data member.
In compiler's view, is the static data member constructed after the
whole class constructed??And is the static data member just a "global"
variable in the class scope???
In compiler's view, the static data member actually is not the class
member, is that true???