internal void CleanRoom(FamilyRoom familyRoom) { // 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 (!familyRoom.isClean()) { familyRoom.isClean(); } Console.WriteLine($"{familyRoom.GetFeatures()} is clean now"); }
internal void CleanRoom(FamilyRoom familyRoom) { familyRoom.SetIsClean(true); Console.WriteLine($"{familyRoom.GetFeatures()} have been cleaned"); }
internal void CleanRoom(FamilyRoom familyRoom) { familyRoom.SetClean(true); Console.WriteLine(familyRoom.GetFeatures() + " were cleaned"); }
internal void CleanRoom(FamilyRoom room) { room.SetIsClean = true; Console.WriteLine($"{room.GetFeatures()} was cleaned!!"); }