Groups | Blog | Home
all groups > asp.net > february 2007 >

asp.net : inheritance problem



goldie11
2/20/2007 11:41:27 PM
Hi,

I have two classes - A,B that inherit from an abstract class C.
The problem is that I need a global field which has always the same
value for the two classes. If I put the field in class C -
As I understand inheritance - both classes will recognize the field
but will have their own values.
Please help.

Thanks.
Ruthie.
Peter Bradley
2/21/2007 12:00:00 AM
You need a static (class) variable.


Peter

[quoted text, click to view]

goldie11
2/21/2007 12:51:58 AM
[quoted text, click to view]

Thanks Peter .
My problem is solved - thanks. I just started to really understand all
the inheritance stuff.
AddThis Social Bookmark Button