overriding members?
C#
3
Posts
2
Posters
0
Views
1
Watching
-
Class C { } Class A { Private C; } Class D : C { } Class B : A { Private D; } It comes to this that when I have a member of type B, I have also C and also D in it. How can I override C in it? Thanks alot for the helpers :) NaNg.
-
It sais "invalid modifier 'virtual' for C". I'll try Explaining again... I have these classes:
public Class C { } public abstract Class A { protected C; } public Class D : C { } public Class B : A { private D; }
When I do this:B = new B();
, I have D AND C in B. And I need ONLY ONE, which is the newer one - D. How can I make the Class A use the new one (D) insted of the old one?