Created
October 18, 2016 05:23
-
-
Save karthikeyanVK/0655afa0d301e930949274f83d2f1822 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Car | |
{ | |
public virtual void Drive() | |
{ | |
Console.WriteLine("Car Drive"); | |
} | |
} | |
public class Toyota : Car | |
{ | |
public override void Drive() | |
{ | |
Console.WriteLine("Toyota Drive"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment