Created
October 11, 2016 09:08
-
-
Save karthikeyanVK/30d09d5dcd70d6e745778847d28540a3 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