public void AppMain() { Naruto naruto = new Naruto(); Console.WriteLine(naruto.isRoot); Console.WriteLine(); var narutoDoppelganger = naruto.doppelganger(); Console.WriteLine(naruto.isRoot); Console.WriteLine(narutoDoppelganger.isRoot); }
static void Main(string[] args) { IAnime ianime; ianime = new OnePiece(); ianime.Cartoon(); Console.WriteLine(); ianime = new Naruto(); ianime.Cartoon(); Console.ReadKey(); }