so the question is: What of the following options illustrates correct usage of instanceof with pattern matching?
but we agree that its not good usage of equals? because we dont check titles
About Question enthuware.ocpjp.v17.2.3716 :
Moderator: admin
-
- Posts: 167
- Joined: Sun Apr 21, 2024 10:43 am
- Contact:
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v17.2.3716 :
Yes, technically correct but not good 
It may be good business logic wise though ... isbn is unique for a book

It may be good business logic wise though ... isbn is unique for a book

Who is online
Users browsing this forum: No registered users and 9 guests