What is the is a and has a relation ship in oops concept in
java?

Answer Posted / vashisht rakesh

Yea you right.
is-a represent the inheritence
and
has-a represents the delegation/association
for example
Chair is a type of Furniture
and
Furniture has a relationship with chair

Is This Answer Correct ?    33 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is empty set an element of empty set?

608


What is the purpose of sizeof operator?

532


Which collection does not allow duplicates in java?

475


What is a protected method?

598


What is composition in java?

730






How do you sort in ascending order in java?

522


What is final int?

534


Differentiate between a constructor and a method? Can we mark constructors final?

678


What are the 7 types of characters?

567


When super keyword is used?

598


What is tree node in java?

530


How do you escape json?

542


What is difference between static class and singleton pattern?

482


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

9241


What is serialization in java?

570