Exemplo n.º 1
0
        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");
 }
Exemplo n.º 3
0
 internal void CleanRoom(FamilyRoom familyRoom)
 {
     familyRoom.SetClean(true);
     Console.WriteLine(familyRoom.GetFeatures() + " were cleaned");
 }
Exemplo n.º 4
0
 internal void CleanRoom(FamilyRoom room)
 {
     room.SetIsClean = true;
     Console.WriteLine($"{room.GetFeatures()} was cleaned!!");
 }