We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
Total marks = 20
| Deadline
Semester: Spring 2024 29% of April 2024
|
refull the foll
Don't copy-paste the same answer.
Make sure you can make some changes to your solution file before submitting
copy paste solution will be marked zero.
Ifyou found any mistake then correct yourself and inform me.
Before submitting an Assignment GDB checks your assignment requirement file.
For any query, feel free to Contact at
WhatsApp: +923074960034
Provide by MJUNAID QAZI
Code:
using System;
using System;
class Employee
{
public string Name get;»set; }
public double Salary { get; set: }
public Employee(string name, double salary:
{
Name = name;
Salary = salary;
}
}
class Manager : Employee
CONTACT ON WHATSAPP
+923074960034public int Id { get; set; }
public string Designation { get; set; }
public Manager(string name, double salary, int id, string designation) : base(name, salary)
{
Id = id;
Designation = designation;
}
}
class Program
t
static void Main(stringl] args)
{
Manager manager = new Manager("M junaid Qazi", 500000, 190409022, “Project Manager");
Console. WritelineC"Manager Details:");
Console Writel ineC*Wane: " + manager.Name);
Console.WwriteLine("Salary: " + manager. Salary);
Console.WwriteLine("ID: "+ manager. Id);
Console, WriteLine(*Designation: * + manager.Designation);
Console.ReadLine();
}
)
class Employee
{
public string Name { get; set; }
public double Salary { get; set; }
public Employee(string name, double salary)
{
Name = name;
salary = salary;
}
class Manager Employee
«
public int Id { get; set; }
public. string"Designation. {. get;, set» }
public Manager(string name, double salary, int id, string designation) :
base(name, salary)
{
Id = id;
Designation = designation;
CONTACT ON WHATSAPP
+923074960034class Program
{
static void Nain(stringL] args)
{
Manager manager = new Nanager( , 500000, 190409022,
Console.WriteLine( ;
Console.WriteLine( + manager .Name) ;
Console.WriteLine( + manager.Salary) ;
Console.WriteLine( + manager .Id);
Console.WriteLine( a + manager .Designation);
Console.ReadLine() ;
Wish you the very best of Luck!