public void Dispaly() { Console.WriteLine("I am a " + Name); AHead.Display(); foreach (Leg aleg in Legs) { aleg.Display(); } ATail.Display(); Console.WriteLine(); }
//Helper method to show the result from client public void Dispaly() { Console.WriteLine("I am a " + Name); AHead.Display(); }