Skip to content

Instantly share code, notes, and snippets.

View arieljannai's full-sized avatar

Ariel Jannai arieljannai

View GitHub Profile
@arieljannai
arieljannai / ctor_abstract_inherit.cs
Last active August 29, 2015 14:10
Example for Yoni - abstract class and ctor inheritance
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");