About Question enthuware.ocajp.i.v7.2.1008 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
Wisevolk
Posts: 33
Joined: Thu Jul 18, 2013 6:06 pm
Contact:

About Question enthuware.ocajp.i.v7.2.1008 :

Post by Wisevolk »

Test Explanation for answer 2 : "Two methods having same parameters can't have different return types."

Is that the right/good explanation ? I think the good answer should be "can't compile" or the "Two methods can't have the same parameters in a class definition.

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1008 :

Post by admin »

You are right. The explanation has been enhanced to:
You cannot have two methods with the same signature (i.e. same name and same parameter list) in the same class.
Note that return type and names of the parameters don't matter while determining the signature.
thank you for your feedback!

Wisevolk
Posts: 33
Joined: Thu Jul 18, 2013 6:06 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1008 :

Post by Wisevolk »

;)
you're welcome

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests