static classvariable



 DEVELOP > c-Plus-Plus > static classvariable

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "Nils"
Date: 09 Nov 2003 09:46:46 AM
Object: static classvariable
Hi,
I have derived a class B from A. In both classes I have declared a static
variable with the same name. Do they both exists, or only the one in
Fatherclass A.
For Example:
class A{
static int a;};
class B:A{
static int a;};
Thank you for your Help!!
.

User: "Victor Bazarov"

Title: Re: static classvariable 09 Nov 2003 09:57:55 AM
"Nils" <slimb@web.de> wrote...

I have derived a class B from A. In both classes I have declared a static
variable with the same name. Do they both exists, or only the one in
Fatherclass A.

Both.

For Example:
class A{
static int a;};
class B:A{
static int a;};

.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER