internal void CleanRoom(RoomForTwo roomForTwo) { // we cant set directly isClean parameters therefore we use isClean function that change //the value of the parameter. the if check that the room clean. if (!roomForTwo.isClean()) { roomForTwo.isClean(); } Console.WriteLine($"{roomForTwo.GetFeatures()} is clean now"); }
internal void CleanRoom(RoomForTwo roomForTwo) { roomForTwo.SetIsClean(true); Console.WriteLine($"{roomForTwo.GetFeatures()} have been cleaned"); }
internal void CleanRoom(RoomForTwo roomForTwo) { roomForTwo.SetClean(true); Console.WriteLine(roomForTwo.GetFeatures() + " were cleaned"); }
internal void CleanRoom(RoomForTwo room) { room.SetIsClean = true; Console.WriteLine($"{room.GetFeatures()} was cleaned!!"); }