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 the program development process?
What are the differences between string, stringbuffer and stringbuilder?
Why is string class considered immutable?
What is passing parameters in java?
How can we run a java program without making any object?
What is finally in Java?
Explain scope or life time of local variables in java?
What do you mean by inner class in java?
What is the static method?
What is the intersection and union methods?
Is ++ operator thread-safe in java?
Which class should you use to obtain design information about an object in java programming?
Can you use abstract and final both with a method?
Why there is no call by reference in java?
Can a constructor be protected?