static void Main(string[] args) { Mammal m = new Mammal(); Whale w = new Whale(); Bat b = new Bat(); m.Move(); m.Eat(); w.Move(); w.Eat(); b.Move(); b.Eat(); RecordedAccount a = new RecordedAccount(); a.Save(100); a.Withdraw(10); Console.WriteLine(a.Deposit); a.ShowRecord(); PolyLine pl = new PolyLine(); Point x = new Point(0, 0); Point y = new Point(1, 0); Point z = new Point(2, 0); //pl.Add(x); //pl.Add(y); //pl.Add(z); pl.Add(x).Add(y).Add(z); Console.WriteLine(pl.GetLength()); }
/// <summary> /// Copy constructor /// </summary> /// <param name="other"></param> public Mammal(Mammal other) : base(other) { ToothCount = other.ToothCount; }