private void Bark_Button_Click(object sender, RoutedEventArgs e) { Dog dog = new Dog(); dog.Bark(); }