static void Main(string[] args) { /*Person one = new Person(); * Console.WriteLine(one.name); * Console.WriteLine(one.age); * Console.WriteLine("and he is"); * Person.Walking(); * Console.ReadKey();*/ Abc.ToDo(); Console.ReadKey(); }
static void Main(string[] args) { Rectangle r = new Rectangle(); r.SetLength(5); r.SetWidth(7); Rectangle r2 = new Rectangle(3, 8); Console.WriteLine(r.Area); Console.WriteLine(r2.Area); Rectangle r3 = new Rectangle(3, 8, 2, 2); Console.WriteLine(r3.Area); Abc a0 = new Abc(); a0.ToDo(); }