using System;
public class Program
{
//base class, Animal
public class Animal
public void Talk()
Console.WriteLine("Animal talk");
}
};
//inherits Animal class
class Dog : Animal
Console.WriteLine("Dog talk");
public static void Main()
Animal a1 = new Animal();
a1.Talk();
Dog a2 = new Dog();
a2.Talk();