static void Main(string[] args) { //Couch couchOne = new Couch(2, 1500, "blue"); //couchOne.CostSeat(); //Ottoman ottomanOne = new Ottoman(250, 2500, true); //ottomanOne.UpholsteredCost(); //Wizard wizardOne = new Wizard(true); //HogwartsStudent longbottom = new HogwartsStudent(7); //DeathEater malfoy = new DeathEater(); //wizardOne.MakeMagic(); //don't need/use console.writeline //longbottom.MakeMagic(); //malfoy.MakeMagic(); //StandardMembership gymMember1 = new StandardMembership(100); //VIPMembership gymMember2 = new VIPMembership(); //gymMember1.Activate(); //gymMember2.Activate(); Microwave microwave1 = new Microwave(1000, "Samsung"); Dishwasher dishwasher1 = new Dishwasher(0, true); microwave1.Work(); dishwasher1.Work(); }
static void Main(string[] args) { //StandardMembership gymMembership1 = new StandardMembership(100); //VIPMembership gymMembership2 = new VIPMembership(); //gymMembership1.Activate(); //gymMembership2.Activate(); Microwave myMicrowave = new Microwave(1000, "samsung"); Dishwasher myDishwasher = new Dishwasher(0, true); myMicrowave.Work(); myDishwasher.Work(); }
static void Main(string[] args) { // To call methods and Properties of a class in the Program class, // yu have to create (instantiate) an object from the class. // =============================== APPLIANCE ============================== Microwave myMicrowave = new Microwave(1000, "Samsung"); Dishwasher myDishwasher = new Dishwasher(0, true); myMicrowave.Work(); myDishwasher.Work(); // ================================ Membership =============================== //Standard gymMember1 = new Standard(100); // "100" is the cost of the membership //VIP gymMember2 = new VIP(); //gymMember1.Activate(); //gymMember2.Activate(); // =========================================== Wizard ================= //Wizard wizardOne = new Wizard(true); //HogwartsStudent longbottom = new HogwartsStudent(7); //DeathEater malfoy = new DeathEater(); //wizardOne.MakeMagic(); //longbottom.MakeMagic(); //malfoy.MakeMagic(); }