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

Define the term string pool?

590


If a method is declared as protected, where may the method be accessed in java programming?

500


How do you define a variable?

543


Explain the advantages of packages in java?

519


What are the Main functions of Java?

635






What is polymorphism java example?

552


What is the multi-catch block in java?

539


Write a program to solve producer consumer problem in java?

571


What is a boolean flag in java?

571


What are annotations in java?

623


How can we achieve thread safety in java?

691


What does system.gc() and runtime.gc() methods do?

602


Write a program to print fibonacci series up to count 10.

522


What is default size of arraylist in java?

565


What are the differences between graph and tree?

653