Exemplo n.º 1
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         = "GooseName";
            goose.Age          = 9001;
            goose.attackDamage = 999999999;

            goose.Honk();
            goose.Aquack();
        }
Exemplo n.º 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         = "GooseName";
            goose.Age          = 9001;
            goose.AttackDamage = 000000000;

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