Created
March 18, 2020 07:22
-
-
Save abrarfahad/c71f29428cf09c3a9d8f5eac8f21ea15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace AIUB_SESOURCE_MANAGEMENT | |
{ | |
abstract class Equipment | |
{ | |
string Light; | |
string fan; | |
string ac; | |
string chair; | |
string desk; | |
public void setequipment(string light,string fan,string ac,string chair,string desk ) | |
{ | |
this.Light = light; | |
this.fan = fan; | |
this.ac = ac; | |
this.chair=chair; | |
this.desk = desk; | |
} | |
public string fann | |
{ | |
get | |
{ | |
return fan; | |
} | |
set | |
{ | |
fan = value; | |
} | |
} | |
public string acc | |
{ | |
get | |
{ | |
return ac; | |
} | |
set | |
{ | |
ac = value; | |
} | |
} | |
public string lightt | |
{ | |
get | |
{ | |
return Light; | |
} | |
set | |
{ | |
Light = value; | |
} | |
} | |
public string deskk | |
{ | |
get | |
{ | |
return desk; | |
} | |
set | |
{ | |
desk = value; | |
} | |
} | |
public string chairr | |
{ | |
get | |
{ | |
return chair; | |
} | |
set | |
{ | |
chair = value; | |
} | |
} | |
} | |
class classroom:Equipment | |
{ | |
string watch; | |
string projector; | |
string swich_board; | |
string white_board; | |
public classroom( string fan,string light,string ac,string chair,string table,string watch,string projector,string swich_board,string white_board ) | |
{ | |
this.projector = projector; | |
this.white_board; | |
this.watch=watch; | |
} | |
public override showinformation() | |
{ | |
console.Writeline("class Room"); | |
Console.Writeline("Fan:"+fan); | |
Console.Writeline("AC:"+ac); | |
Console.Writeline("Chair:"+chair); | |
Console.Writeline("Projector:"+projector); | |
Console.Writeline("Whiteboard:"+white_board); | |
Console.Writeline("watch:"+watch); | |
} | |
class washroom:Equipment | |
{ | |
string sink; | |
string comod; | |
string hand_wash; | |
public washroom(string light, string sink,string hand_wash,string comod):base(light) | |
{ | |
this.sink=sink; | |
this.white_board; | |
this.watch=watch; | |
} | |
class offcieroom:Equipment | |
{ | |
string office_chair; | |
} | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Hello World!"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment