Janitorial services

  • 8
  • Locked
Let's create a virtual janitorial business with a cleanAllApartments method for all apartment types and individual methods for cleaning one-, two- and three-bedroom apartments.
You can't complete this task, because you're not signed in.
Comments (7)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Andrew Evans
Level 17 , San Jose, Canada
1 March 2022, 01:37
Unknown Error! Nice!
Justin Smith
Level 38 , Greenfield, USA, United States
13 August 2021, 18:56
This was easier than some of the green easy ones, IMO.
Roman Grygorczuk
Level 19 , Cracow, Poland
4 April 2021, 11:15
This is absolutely unclear to me.
Samuel Michael
Level 16 , Stafford, United States
20 February 2021, 23:13
Why do you need to cast the apartment objects to room type if there is already an "if instanceof" apartment type statement?
Level 15 , Old Town, United States
10 June 2021, 19:40
i believe instanceof just checks the status of the object. you still need to cast down to the OneRoomApt to access its methods.
Amo programmare
Level 28 , Italy
13 February, 10:57
I guess my confusion arised because of the shorthand used to create the object. If I understood correctly, the object was created as an Apartment object because the ArrayList accepts Apartment objects. Is that correct?
Zoltán R
Level 26 , Budapest, Hungary
12 July 2019, 17:20
whats wrong with my code?