static void Main(string[] args) { Caller c = new Caller(); Rectangle r = new Rectangle(10, 7); Triangle t = new Triangle(10, 5); c.CallArea(r); c.CallArea(t); Console.ReadKey(); }
static void Main(string[] args) { Caller c = new Caller(); Rectangle r = new Rectangle(10, 7); Triangle t = new Triangle(10, 5); c.CallArea(r); c.CallArea(t); }
static void Main(string[] args) { Caller c = new Caller(); Rectangle r = new Rectangle(12, 3); Triangle t = new Triangle(23, 2); c.CallArea(r); c.CallArea(t); Console.ReadKey(); }
static void Main(string[] args) { Caller c = new Caller(); Rectangle r = new Rectangle(10, 7); //dimenstions for an instantiated rectangle Triangle t = new Triangle(10, 5); //dimenstions for an instantiated triangle c.CallArea(r); c.CallArea(t); Console.ReadKey(); }
static void Main() { Caller c = new Caller(); Rectangle r = new Rectangle(10, 7); Triangle t = new Triangle(10, 5); Shape s = new Shape(10, 3); c.CallArea(r); c.CallArea(t); c.CallArea(s); Console.ReadKey(); }
static void Main(string[] args) { Caller c = new Caller(); CallerSS css = new CallerSS(); Rectangle r = new Rectangle(10, 7); Triangle t = new Triangle(10, 5); Square s = new Square(6, 6); Parallelagram p = new Parallelagram(31415, 66261); Parrot parrot = new Parrot(450); Spaniel spaniel = new Spaniel(662); spaniel.Bark(); c.CallArea(r); c.CallArea(t); c.CallArea(s); c.CallArea(p); css.CallAreaSS(p); Console.ReadKey(); }