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

Biography
student

Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Inheritance problem.... - ivan perez  12-Oct-08 08:55 8:55:55 PM
      Try this - ram kumar  12-Oct-08 09:40 9:40:49 PM
          ram kumar is something like that but - ivan perez  13-Oct-08 01:27 1:27:38 AM
      re - Arvind Kumar  13-Oct-08 12:03 12:03:30 AM
      reply - Megha P  13-Oct-08 12:42 12:42:40 AM
      Inheritance - Lalji Mer  13-Oct-08 03:18 3:18:37 AM
      Inheritance - Lalji Mer  13-Oct-08 03:21 3:21:06 AM
View Posts