Example #1
0
        static void Main(string[] args)
        {
            Post post1 = new Post("Thank for the b-day wishes", true, "Maya A");

            Console.WriteLine(post1.ToString());
            Console.ReadLine();

            ImagePost imagePost1 = new ImagePost("Check out my new shoes", "Mayya", "https://image.com", true);

            Console.WriteLine(imagePost1.ToString());
            Console.ReadLine();

            VideoPost videoPost1 = new VideoPost("Watch the video", "Mayya", "https://video.com", 4, true);

            Console.WriteLine(videoPost1.ToString());
            videoPost1.Play();
            Console.WriteLine("Press any key to stop the video");
            Console.ReadKey();
            videoPost1.Stop();
            Console.ReadLine();
        }
Example #2
0
        //Ex. Car - Base prop: HP, windows, wheels Methods: drive, honk ALL cars have this.
        // Deriving Classes Race Car prop: Turbo Method: Racing  Street Car prop: Comfort method: StreetRide

        static void Main(string[] args)
        {
            Post post1 = new Post("Thanks for the birthday wishes", true, "Dustin Cummings");

            Console.WriteLine(post1.ToString());


            ImagePost imagePost = new ImagePost("Check out my new shoes", "Dustin Cummings", "https://images.com/shoes", true);
            VideoPost videoPost = new VideoPost("Fail Video", "Dustin Cummings", "https://video.com/video", true, 5);


            Console.WriteLine(imagePost.ToString());
            Console.WriteLine(videoPost.ToString());

            videoPost.Play();
            Console.WriteLine("Press any key to stop the video!");
            Console.ReadKey();
            videoPost.Stop();


            Console.ReadKey();
        }
Example #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            Post post1 = new Post("Thanks for birthday wishes", true, "BjornDaBoy");

            Console.WriteLine(post1.ToString());

            ImagePost imagePost1 = new ImagePost("Check shoes", "BVO", "Https//images.com/shoes", true);

            Console.WriteLine(imagePost1.ToString());

            VideoPost videoPost1 = new VideoPost("Check the vid", "JJ", "HTTP.youtube", 20, true);

            Console.WriteLine(videoPost1.ToString());

            videoPost1.Play();
            Console.WriteLine("Press any key to stop vid");

            Console.ReadKey();
            videoPost1.Stop();
        }
Example #4
0
        static void Main(string[] args)
        {
            Post post1 = new Post("Thanks for the Birthday Wishes", true, "Sean Mongru");

            Console.WriteLine(post1.ToString());
            ImagePost post2 = new ImagePost("Check out my new shoes", "Sean Rajeev Mongru",
                                            "http://newshoes.com/shoes", true);

            Console.WriteLine(post2.ToString());

            VideoPost post3 = new VideoPost("New shoes, very kool, 10/10", "rDarky7",
                                            "http://newshoes.com/shoes/bestshoesvid", 180, true);

            Console.WriteLine(post3.ToString());

            post3.Play();
            Console.WriteLine("Press any key to stop video");
            Console.Read();
            post3.Stop();

            Console.ReadLine();
        }
Example #5
0
        static void Main(string[] args)
        {
            Post post1 = new Post(
                "Thanks for the birthday wishes",
                true,
                "Kevin Stapleton"
                );

            Console.WriteLine(post1.ToString());

            ImagePost imgPost = new ImagePost("Check out my gout", "Kevin Stapleton", "https://imaages.com/1312312", true);

            Console.WriteLine(imgPost.ToString());

            VideoPost vidPost = new VideoPost("Check out my big tow", "Kevin Stapleton", "https://videos.com/1312312", true, 5);

            Console.WriteLine(vidPost.ToString());
            vidPost.Play();
            Console.WriteLine("Press any key to stop the video");
            Console.ReadKey();
            vidPost.Stop();
        }