How to Use Inheritence Specialization
  • How to Use Inheritence Specialization
  • 1 Comment sorted by


  • namespace ConsoleApplication1
    {
    class Program
    {
    static void Main(string[] args)
    {
    Man Obj1 = new Man();
    Obj1.Work();
    Woman Obj2 = new Woman();
    Obj2.Talk();
    Console.ReadLine();
    }
    }
    class Human{}
    class Man: Human
    {
    public void Work()
    {
    Console.WriteLine("Man work");
    }
    }
    class Woman : Human
    {
    public void Talk()
    {
    Console.WriteLine("Woman talk");
    }
    }
    }

    for further details and related topics http://www.codecorner.somee.com/

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week