Skip to content
Loading
  • Dharmraj Thakur
    0
    Please try...
     
    1. class Base  
    2. {  
    3.     public static int ID { get; set; }  
    4. }  
    5. class Child : Base  
    6. {  
    7.     public static int ID { get; set; }  
    8.     public int Display(int Id)  
    9.     {  
    10.         return Base.ID = Id;  
    11.     }  
    12. }  
    13. class Tester  
    14. {  
    15.     static void Main(string[] args)  
    16.     {  
    17.         Child ch=new Child();  
    18.         Console.Write(ch.Display(5));  
    19.         Console.ReadKey();  
    20.     }  
    21. }  
     
    0