Override virtual method : Virtual : Class C# Examples


C# Examples » Class » Virtual »

 

Override virtual method









    
class  Control
{
        public  virtual  void  Foo()  {}
}
class  MyControl:  Control
{
        //  an  override  for  Control.Foo()
        public  override  void  Foo()  {}
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Class
» Virtual