Let's put together a rectangle

  • 4
  • Locked
OKEA sells unassembled space shuttles. They are all rectangular (we don't know why). These guys ordered a program from Company X for automatically generating shuttle instructions. You've been assigned to create a rectangle class and initializer methods for whatever life might throw at it.
You can't complete this task, because you're not signed in.
Comments (17)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Usman Full Stack Developer at QA
30 June 2021, 12:59
the validation for this task is poor :3
ImDevin
Level 15 , Old Town, United States
6 April 2021, 01:45
Best to just follow the Requirements list to pass the Verifier
Joe M
Level 11 , Owings Mills, United States
14 October 2020, 20:08
be sure you spell "initialize" correctly...easy to make typos
Tyler Evans
Level 6 , Wallasey, United Kingdom
26 August 2020, 23:01
im over hear writing every possibul inization varibul there could possibuly be the task is convisingly worded good this i read these coments before coding all them inzitalize methods
Rajesh R
Level 7 , Toronto, Canada
8 August 2020, 15:05
task passed without having to create a copy of another rectangle, created only 4 initialize methods
Brandon Leirer
Level 7 , Keller, United States
4 June 2020, 19:33
So the reading states that several initialize methods can be created in the same class, but this task seems to indicate that there are restrictions that were not covered with us. Example, it seems that (int top, int left) and (int width , int height) would cause conflicts because java just sees both of these as two integers. It would be nice to have an official explanation of what is going on here.
Nickolas Johnson
Level 8 , St. Louis, United States of America
9 March 2020, 14:13
Adrie Taniwidjaja's explanation was the only reason this made sense to me.
HaeWon Chung
Level 17 , Boston, United States
22 January 2020, 03:47
I kind of agreeing what Adrie Taniwidjaja said below. The requirements should state to have 1, 2, 3, or 4 parameters not at least four initialize methods. If you pass the last requirements the other three requirements are automatically fulfilled.
LucGar
Level 22 , Bilbao, Spain
9 December 2019, 14:07
i do it, but i dont undertand nothing
Kent Hervey Software Engineer/Consult at Zeal IT Consultants
20 October 2019, 23:52
BTW, 4 is the maximum number of initializers because overiding can only be done by changing the signature which means parameter list. There are only four parameters, so that is the maximum. Java is looking for variable types, not order. So (int top, int left) and (int left, int top) looks the same and would be a conflict.