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

bc200206868 CS606 Assignment No 1

c

Uploaded by

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

bc200206868 CS606 Assignment No 1

c

Uploaded by

hammad chaudhry
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

CS411

Assignment no: 1
Student Name: Hammad Rehman Student ID: Bc200206868
Question No: 1
Solution-

//Put screenshot of output here

//Put your code here


Employee Class:

internal class Employee


{
public string Name { get; set; }
public int Salary { get; set; }
}

Manager Class:
internal class Manager : Employee
{
public int id { get; set; }
public string Designation { get; set; }
}
Program Class:
class Program
{
static void Main(string[] args)
{
Manager manager = new Manager();
manager.Name = "Hammad Rehman";
manager.id = 200206868;
manager.Salary = 60000;
manager.Designation = "Senior manager"; Console.WriteLine("Manager Details:");
Console.WriteLine("Name:{0} \nID:{1}\nSalary:{2} \nDesigination:
{3}",manager.Name,manager.id,manager.Salary,manager.Designation);
}
}

You might also like