aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes is -a relationship Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "is -a relationship" Watch "is -a relationship" New topic
Author

is -a relationship

nitin sharma
Ranch Hand

Joined: Feb 24, 2001
Posts: 290
interface i
{
}
public class nitin implements i
{

}

The above given code depict's the IS-A relationship or not.Answer in yes or no.
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
YES!


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
rajashree ghatak
Ranch Hand

Joined: Mar 10, 2001
Posts: 151

could anyone explain why the answer is "yes" a little elaborately?
can't get how there can be is -a relationship between a class and interface.
rajashree.
ratul banji
Ranch Hand

Joined: Mar 15, 2001
Posts: 108
But ...Ajith
If answer is YES...then wht. is 'is-like-a' relationship !!!
Just asking.
Ratul
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782


  • Fruit is-a Edible entity.
  • Seed is not an Edible entity.
  • Fruit has-a Seed.
  • Apple is-a Fruit, is-a Edible entity and has-a Seed.
  • BeerCan is not a Fruit.
  • BeerCan is not an Edible entity.

  • There isn't really a is-like-a relationship, not a standard one atleast. The is-a relation sometimes can be interchanged with is-like-a for example - Apple is like a fruit. As a purist I don't agree with this description completely because is-like-a sounds like Apple is an incomplete Fruit, though it has many properties of the Fruit.
    Cheers!
nitin sharma
Ranch Hand

Joined: Feb 24, 2001
Posts: 290
Great,Excellent stuff by Ajith.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: is -a relationship
 
Similar Threads
what is the " is a " relationship
what relationship it is?
Desperate for Help
WA #1.....word association
a uml question