Solution
//Put screenshot of output here
//Put your code here
using System;
public class Employee
{
public string Name { get; set; }
public double Salary { get; set; }
}
public class Manager : Employee
{
public string Id { get; set; }
public string Designation { get; set; }
}
public class Program
{
public static void Main(string[] args)
{
Manager manager = new Manager();
manager.Name = "Rabi Hussain";
manager.Salary = 50000;
manager.Id = "Bc200203505";
manager.Designation = "Senior Manager";
Console.WriteLine("Manager Details:");
Console.WriteLine("Name: " + manager.Name);
Console.WriteLine("Salary: " + manager.Salary);
Console.WriteLine("ID: " + manager.Id);
Console.WriteLine("Designation: " + manager.Designation);
}
}