示例#1
0
        static void Main(string[] args)
        {
            //public static void Main(string[] args)
            // {
            PersonInfo p1 = new PersonInfo();

            p1.GetData();
            p1.ShowData();
            PersonInfo p2 = new PersonInfo();

            p2.ShowData();
            PersonInfo p3 = new PersonInfo("deepika", 20, "*****@*****.**");

            p3.ShowData();

            Shapes s = new Rectangle();

            s.DisplayArea();
            s.DisplayShapes();

            Bird b = new OOPSExample.Bird();

            b.fly();
            Kite k = new Kite();

            k.fly();
            Plane p = new Plane();

            p.fly();
            p.PrintTicket();



            // }
        }
示例#2
0
        static void Main(string[] args)
        {
            //PersonInfo p1 = new PersonInfo();
            //p1.GetData();
            //p1.ShowData();

            //PersonInfo p2 = new PersonInfo();
            //p2.ShowData();

            //PersonInfo p3 = new PersonInfo("murthy ", 22, " [email protected]");
            //p3.ShowData();


            //Shapes s = new Rectangle();
            //s.DisplayArea();
            //s.DisplayShapes();

            Bird b = new Bird();

            b.fly();

            Kite k = new Kite();

            k.fly();

            Plane p = new Plane();

            p.fly();
            p.PrintTicket();
        }