This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is-Like-A

 
nico dotti
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't heard of this description. It seems to correlate with a classes relationship to an interface it implements - is that correct? Thanks
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15203
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've also never heard of "is-like-a". Where did you read / hear about that term? The "is-a" relationship is also valid for classes that implement interfaces.
 
nico dotti
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a few of the enthuware questions are worded like that.
 
Kelvin Chenhao Lim
Ranch Hand
Posts: 513
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Jesper said, "Is-Like-A" is not a standard term in OO lingo. The closest programming construct I can think of that might correspond to this relation are delegates in C# and other .NET languages, which give you a way to describe similarity in behavior without an inheritance relation. But I don't think Java has anything quite like this, and the SCJP exam definitely won't use this term.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic