using System;
using System.Collections.Generic;
using System.Text;

namespace _0_25
{
    public class Dog
    {
        // Attributes
        public string breed;
        public int age;
        public string color;
        private int num_legs;
        public bool isFemale;

        // Constructor
        public Dog(string b, string c, bool isF)
        {
            breed = b;
            age = 0;
            color = c;
            num_legs = 4;
            isFemale = isF;
        }

        public int Num_Legs
        {
            get
            {
                return num_legs;
            }
            set
            {
                if (value <= 4)
                {
                    num_legs = value;
                }
                else
                {
                    num_legs = 4;
                }
            }
        }

        public void bark()
        {
            if (breed == "Chihuahua")
            {
                Console.WriteLine("Yip yip yipy ipy....");
            }
            else
            {
                Console.WriteLine("Woof");
            }
        }

    }

    class Program
    {
        static void Main(string[] args)
        {
            Dog d1;
            d1 = new Dog("Chihuahua", "purple", false);
            d1.Num_Legs = 50;
            Console.WriteLine(d1.age+" "+d1.breed+" "+d1.Num_Legs+" "+d1.isFemale);

            /*Dog d2;
            d2 = new Dog("Dachshund", "green", true);
            //Console.WriteLine(d2.age + " " + d2.breed + " " + d2.num_legs + " " + d2.isFemale);
            d1.bark();
            d2.bark();*/
        }
    }
}