예제 #1
0
        private void Quack_Button_Click(object sender, RoutedEventArgs e)
        {
            img.Source = new BitmapImage(new Uri("C:\\Users\\User1\\Source\\Repos\\htc-cs-102\\Week05\\InheritanceIntro\\InheritanceIntro\\duck.jpg"));
            Duck duck = new Duck();

            duck.Quack();
        }
예제 #2
0
        private void quackButton_Click(object sender, RoutedEventArgs e)
        {
            // Make a duck
            // make it quack
            Duck duck = new Duck("Bobert", 50);

            duck.Quack();
        }
예제 #3
0
        private void quackButton_Click(object sender, RoutedEventArgs e)
        {
            //make duck
            //make it quack
            Duck duck = new Duck(12, "Fredrick");

            duck.Quack();
        }
예제 #4
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            // Make a Duck
            // Make it Quack

            Duck duck = new Duck(12, "Aiden Rutledge");

            duck.Quack();
        }
예제 #5
0
        private void quackButton_Click(object sender, RoutedEventArgs e)
        {
            // Make A Duck
            // make it quack

            Duck duck = new Duck(12, "Admiral Quackbar");

            duck.Quack();
        }
        private void quackButton_Click(object sender, RoutedEventArgs e)
        {
            Duck duck = new Duck(12, "Mistake");

            duck.Quack();
        }
예제 #7
0
        private void Quack_Button_Click(object sender, RoutedEventArgs e)
        {
            Duck duck = new Duck();

            duck.Quack();
        }
예제 #8
0
        private void quackButton_Click(object sender, RoutedEventArgs e)
        {
            Duck duck = new Duck(12, "Duck of the Silver Turoc");

            duck.Quack();
        }