By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,389 Members | 1,844 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,389 IT Pros & Developers. It's quick & easy.

static classvariable

P: n/a
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!!

Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Nils" <sl***@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;};


Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.