Page 1 of 1

About Question enthuware.ocajp.i.v8.2.890 :

Posted: Wed Oct 25, 2017 2:59 am
by bortnikov_sa@mail.ru
I think thear are two correct answers:
*) mysq = new Square(20);
*) mysq.setSide(20);
Because after mysq = new Square(20) mysq refered to Square object and it side == 20. Despite the fact that this is a new object, this does not contradict the wording of the question!

Re: About Question enthuware.ocajp.i.v8.2.890 :

Posted: Wed Oct 25, 2017 11:49 am
by admin
The problem statement clearly says that you need to modify the object pointed to by the variable in the given code.

Also, you need to select only one option, while your answer requires you to select two options.