Define virtual function in base and its subclass : Virtual : Class C# Examples


C# Examples » Class » Virtual »

 

Define virtual function in base and its subclass









    
public  class  Control
{
        public  virtual  void  Foo()  {}
}
public  class  MyControl:  Control
{
        public  virtual  void  Foo()  {}
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Class
» Virtual