﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Animal31b
{
    class Animal
    {
        public string name;
        public int age;
        public float happiness;

        public void PrintBase()
        {
            Console.WriteLine("Name " + name);
            Console.WriteLine("Age " + age);
            Console.WriteLine("Happiness " + happiness);
        }
    }

    class Dog : Animal
    {
        public int spotCount;

        public void Bark()
        {
            Console.WriteLine("Wuf ! ");
        }
    }

    class Cat : Animal
    {
        public float cuteness;

        public void Meow()
        {
            Console.WriteLine("Meow ! ");
        }
    }


    class Program
    {
        static void Main(string[] args)
        {
            Dog Tackica = new Dog();
            Tackica.name = "Tačkica";
            Tackica.spotCount = 30;
            Tackica.happiness = 0.8f;
            Tackica.age = 4;

            Tackica.PrintBase();
            Tackica.Bark();
            
            Console.WriteLine();

            Cat Gundjalo = new Cat();
            Gundjalo.name = "Gunđalo";
            Gundjalo.age = 10;
            Gundjalo.cuteness = 0.1f;
            Gundjalo.happiness = -1;
            Gundjalo.PrintBase();
            Gundjalo.Meow();
            




            Console.ReadKey();
        }
    }
}
