In: Computer Science
UML DIAGRAM:
PROGRAM IN C#:
using System;
class CofeeShop{
static void Main() {
Manager manager=new
Manager(){StudentId="1",StudentName="Santosh"};
manager.Work();
Chef chef=new Chef(){StudentId="2",StudentName="Amol"};
chef.Work();
Customer_Service waiter=new
Customer_Service(){StudentId="3",StudentName="satish"};
waiter.Work();
}
}
public abstract class Student_Employee
{
public string StudentId{get;set;}
public string StudentName{get;set;}
public string Designation{get;set;}
public abstract void Work();
}
public class Manager:Student_Employee
{
public Manager()
{
Designation="Manager";
}
// we will implement in this work assign to Manager
public override void Work()
{
}
}
public class Chef:Student_Employee
{
public Chef()
{
Designation="Chef";
}
// we will implement in this work assign to Chef
public override void Work()
{
}
}
public class Customer_Service:Student_Employee
{
public Customer_Service()
{
Designation="Student_Employee";
}
// we will implement in this work assign to customer service
public override void Work()
{
}
}