This file contains hidden or 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
namespace Yoni | |
{ | |
static class Program | |
{ | |
static void Main() | |
{ | |
AlmightyKing ariel = new AlmightyKing("Ariel", "Jannai", "Your Majesty", "The Milky Way"); | |
Console.WriteLine("calling SayName() of the base class - SimpleHuman"); | |
Console.WriteLine(ariel.SayNameOriginal()); | |
Console.WriteLine("\ncalling SayName() - the overrided function in AlmightyKing"); |
NewerOlder