Simple Program of Inheritance in C#

Use Inheritance Create 3 classes, first Parrots, second Kiwis and third Mousebird. After then create a function to print details about birdsdetails1. colour2. weight3. length4. height create objects of the three classes and save it in a array then retrieve the object and print details.
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.Linq;  
  4. using System.Text;  
  5. using System.Threading.Tasks;  
  6. namespace UseInheritanceParrotKiwisMousebird {  
  7.     public class parrots {  
  8.         int weight, length, height;  
  9.         string colour;  
  10.         public void details(string colour, int weight, int length, int height) {  
  11.             this.colour = colour;  
  12.             this.weight = weight;  
  13.             this.length = length;  
  14.             this.height = height;  
  15.             Console.WriteLine("\ncolour : " + colour);  
  16.             Console.WriteLine("weight : " + weight + " gm");  
  17.             Console.WriteLine("length : " + length + " cm");  
  18.             Console.WriteLine("height : " + height + " cm");  
  19.         }  
  20.     }  
  21.     public class kiwi: parrots {}  
  22.     public class mousebird: kiwi {}  
  23.     class Program {  
  24.         static void Main(string[] args) {  
  25.             Console.WriteLine("PARROTS");  
  26.             parrots pr = new parrots();  
  27.             pr.details("red", 200, 8, 4);  
  28.             Console.WriteLine("\n\nKIWI");  
  29.             kiwi kw = new kiwi();  
  30.             kw.details("yellow", 230, 10, 8);  
  31.             Console.WriteLine("\n\nMOUSEBIRD");  
  32.             mousebird mb = new mousebird();  
  33.             mb.details("blue", 250, 14, 8);  
  34.             Console.ReadLine();  
  35.         }  
  36.     }  
  37. }  
Output

PARROTS
colour :red
weight :200 gm
length :8 cm
height :4 cm

KIWI
colour : yellow
weight : 230 gm
length : 10 cm
height : 8 cm

MOUSEBIRD
colour : blue
weight : 250 gm
length : 14 cm
height : 8cm