Exemple #1
0
        static void Main(string[] args)
        {
            DriverLicense firstLicense = new DriverLicense("Jared", "Bardell", "Male", 71990583);

            Console.WriteLine("Hello, my name is {0} {1}, and I am a {2}. My driver's license number is: {3}",
                              firstLicense.firstName, firstLicense.lastName, firstLicense.gender, firstLicense.licenseNumber);
            firstLicense.GetFullName();
            Console.ReadKey();
        }
Exemple #2
0
        static void Main(string[] args)
        {   //Driver's License Instance
            DriverLicense driver1  = new DriverLicense("Joe", "Schmoe", "Male", "12345555");
            string        FullName = driver1.GetFullName();

            Console.WriteLine(FullName);

            //Book Instance
            Book   book1   = new Book("The Greasy Gatsby", "Melvin Feinstein", "Molly Ringwold", "710", "58756-120", "Barnes & Noble Press", "$24.95");
            string Authors = book1.GetAuthors();

            Console.WriteLine(Authors);

            //Plane Instance
            Airplane airplane1 = new Airplane("Boeing", "Stealth Bomber", "Variant 6", "Variant 3", "2", "3");

            Console.WriteLine("The {0} {1} {2},{3}, holds {4} passengers and has {5} engines!", airplane1.Manufacturer, airplane1.Model, airplane1.Variant1, airplane1.Variant2, airplane1.Capacity, airplane1.Engines);
            string Variants = airplane1.GetVariants();

            Console.WriteLine(Variants);
        }
Exemple #3
0
        public static void Main(string[] args)
        {
            //Driver License Instance
            DriverLicense Driver1  = new DriverLicense("Kevin", "Mora", "Male", "27606268");
            string        FullName = Driver1.GetFullName();

            Console.WriteLine(FullName);



            //Book Instance
            Book Book1 = new Book(1, "Harry Potter", "J.K. Rowling", "Publisher", "500", "400", "$19.99");
            Book Book2 = new Book(2, "LOTR", "J.R.R Tolkien", "Publisher", "1000", "12345", "$100,000");
            Book Book3 = new Book(3, "Amelia Bedilia", "Peggy Parish", "Publisher", "340", "320", "$9.96");
            Book Book4 = new Book(4, "Killing of Lincoln", "Bill O; Reilly", "Martin Dugard", "Publisher", "400", "$32.99");



            //Plane Instance
            Airplane Plane1 = new Airplane(1, "Boeing", "Model-1", "Variant 5", "40", "3");
            Airplane Plane2 = new Airplane(2, "Airbus", "Model-2", "Variant 3", "32", "12");
            Airplane Plane3 = new Airplane(3, "Bombardier", "Model-3", "Variant 4", "45", "13");
            Airplane Plane4 = new Airplane(4, "Cirrus Aircraft", "Model-IO-550-N", "Variant 10", "30", "65");
        }