Example #1
0
        static void Main(string[] args)
        {
            Cat MyCat = new Cat("たま", 3);
            Dog MyDog = new Dog("ぽち", 4);

            MyCat.ShowProfile();
            MyDog.ShowProfile();
            MyCat.Sleep();
            MyDog.Run();
        }
Example #2
0
        static void Main(string[] args)
        {
            Dog Dog1 = new Dog();
            Dog Dog2 = new Dog();

            Dog1.Name = "ぽち";
            Dog1.Age  = 3;
            Dog2.Name = "ジョン";
            Dog2.Age  = 5;

            Dog1.ShowProfile();
            Dog2.ShowProfile();
        }