0% found this document useful (0 votes)
27 views2 pages

cs411 Vu

Uploaded by

rabihussain976
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

cs411 Vu

Uploaded by

rabihussain976
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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);
}
}

You might also like