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(); }
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 = "Name"; goose.Age = 9001; goose.AttackDamage = 999999999; goose.Honk(); goose.Attack(); }