public Person(string name, int age, string address)
public virtual string Introduce()
return $"Hi, my name is {name} I am {age} years old. I live at {address}";
class Employee : Person, IWorkable
public Employee(string name, int age, string address, string jobTitle) : base(name, age, address)
this.jobTitle = jobTitle;
public override string Introduce()
return $"Hi, my name is {name} and I am {age} years old. I am a {jobTitle} and I live at {address}";
Console.WriteLine("I am working.");
static void Main(string[] args)
Employee employee = new Employee("Vibha", 20, "124 safal road.", "Developer");
Console.WriteLine(employee.Introduce());