Created
October 18, 2016 05:26
-
-
Save karthikeyanVK/06de40495748379dc93eef362fe592fa 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 Toyota : Car | |
{ | |
public string type { get; set; } | |
public override void Drive() | |
{ | |
Console.WriteLine("Toyota Drive"); | |
} | |
public override void ShiftGear() | |
{ | |
if(type == "ETIO") | |
{ | |
Console.WriteLine("shift etio type-toyota gear"); | |
return; | |
} | |
Console.WriteLine("shift toyota gear"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment