What is the is a and has a relation ship in oops concept in
java?
Answer Posted / yogeshwar
is a
Relationship between a Class and its object.
Eg.
Class Car { ... }
Car maruti800=new Car();
here maruti800 is a car.
Relationship between Car and maruti800 ==> is a
the Person and Address is a suitable example for has a
| Is This Answer Correct ? | 2 Yes | 11 No |
Post New Answer View All Answers
What is package protected in java?
what is optional in java 8?
Can a class have 2 constructors?
Why we override equals() method?
What are jee technologies?
What is variable and rules of variable?
What is __ init __ functions?
When do we use hashset over treeset?
What does next mean in java?
What is a stringbuffer?
Why convert an applet to an application?
Where are local variables stored?
Write a program to reverse a number in java?
What are the methods used to implement for the key object in the hash map?
What about method local inner classes or local inner classes in java?