public Person(string name , int age , string address )
public virtual void introduce()
Console.WriteLine(" Hi, my name is " + (this.name) + " and I am " + (this.age) + " years old. I live at " + (this.address)) ;
public static void Main(string[] args)
Employee myobj = new Employee("Ajay" , 38 , "devloper", "ahmedabad");
public Employee(string name , int age , string address , string jobtitle) : base(name,age,address)
this.jobtitle = jobtitle;
public override void introduce()
Console.WriteLine(" Hi, my name is " + (this.name) + " and I am " + (this.age) + " years old. I am " + (this.jobtitle) +"I live at " + (this.address)) ;