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

namespace Ch._11___Example_01
{
  
    public class Chicken : Animal
    {
        public void LayEgg()
        {
        Console.WriteLine("{0} has laid an egg.", name);
        }
    
        public Chicken(string newName) : base(newName)
        {
        }
    }

}
