private void Button_Click(object sender, RoutedEventArgs e)
        {
            Goose goose = new Goose();

            goose.Name = "gary";
            goose.Age  = "probabley like 2 or something";
            goose.Atk  = "9876543213456";
            goose.Honk();
            goose.Attack();
        }
Beispiel #2
0
        private void SayName_Button_Click(object sender, RoutedEventArgs e)
        {
            //string dogName = DogName.Text;
            //Dog dog = new Dog();
            //dog.Name = dogName;
            //dog.SayName();

            Goose goose = new Goose();

            goose.Name         = "Daddy";
            goose.Age          = 9001;
            goose.AttackDamage = 99999999;

            goose.Honk();
            goose.AQuack();
        }
        private void SayName_Button_Click(object sender, RoutedEventArgs e)
        {
            /* string dogName = DogName.Text;
             * Dog dog = new Dog();
             * dog.Name = dogName;
             * dog.SayName(); */

            Goose goose = new Goose();

            goose.Name         = "GooseName";
            goose.Age          = 9001;
            goose.attackDamage = 999999999;

            goose.Honk();
            goose.Aquack();
        }