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.
Let's put together a rectangle
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
6 April 2021, 01:45
Best to just follow the Requirements list to pass the Verifier
14 October 2020, 20:08
be sure you spell "initialize" correctly...easy to make typos
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
8 August 2020, 15:05
task passed without having to create a copy of another rectangle, created only 4 initialize methods
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.
9 March 2020, 14:13
Adrie Taniwidjaja's explanation was the only reason this made sense to me.
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.
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.