InterviewSolution
Saved Bookmarks
| 1. |
What is the ‘IS-A ‘ relationship in OOPs java? |
|
Answer» ‘IS-A’ relationship is another name for inheritance. When we inherit the base CLASS from the DERIVED class, then it forms a relationship between the classes. So that relationship is termed an ‘IS-A’ Relationship. Example - Consider a TELEVISION (Typical CRT TV). Now another Smart TV that is INHERITED from television class. So we can say that the Smart iv is also a TV. Because CRT TV THINGS can also be done in the Smart TV. So here ‘IS-A’ Relationship formed. [ SmartTV ‘IS-A’ TV ]. |
|