Is the Statement creation necessary in the code? (Both statement and explanation)
I see it is not used, are there any side effects of creating it?
About Question enthuware.ocpjp.v7.2.1200 :
Moderators: Site Manager, fjwalraven
-
- Posts: 51
- Joined: Wed Sep 28, 2011 12:14 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1200 :
No, it doesn't serve any purpose here. Should be removed.
thank you for your feedback!
thank you for your feedback!
-
- Posts: 51
- Joined: Wed Sep 28, 2011 12:14 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1200 :
Now I see another improvement to the question statement. As it is now, the code will not compile because the other 2 "evaluate" methods declare boolean return type but their implementation is empty. This is not the case for the explanation code (which is awesome)
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Who is online
Users browsing this forum: No registered users and 3 guests