コード例 #1
0
        private void SayName_Button_Click(object sender, RoutedEventArgs e)
        {
            Dog somethingelse = new ClassesIntro.Dog("Harley", "German Shepard", 15, true);

            somethingelse.Name = "Harley";
            somethingelse.SayName();
        }
コード例 #2
0
        private void SayName_Button_Click(object sender, RoutedEventArgs e)
        {
            Dog doggy = new ClassesIntro.Dog("golden retrievers", "lily", 30);

            doggy.SayName();
        }