What is the difference between "IS -A" relationship and "HAS-A" relationship in Java?

Viewed 112560

I am new to JAVA and just started learning "IS-A" and "HAS-A" relation but I didn't really get it.

What is the difference between "IS-A" and "HAS-A"?
When should I use "IS-A" and when should I use "HAS-A"?

2 Answers
Related