Inheritance problem.... |
| ivan perez posted at 12-Oct-08 08:55 |
Hi helper friends... I want know how i can do this... class A { public virtual int Value { get{return 10;} } } class B:A { public override int Value { get { return 5; } } public int example() { return base.Value; } public int change { get { return base.Value; } set { base.Value=value; } } } The problem is when i call: set
{
base.Value=value;
} of course is a conceptually problem ... but i want set the value of the original inheritance class from other class... My quest is how i can do something like that... Thanks in advanse
|
|