0
Explain is-a relation ship in java
About java
3 Answers
+ 5
It's helpful to also contrast the "IS A" relationship of inheritance with another OOP concept known as composition which applies the "HAS A" relationship.
+ 2
You express IS-A relationship in Java through the keywords extends and implements.
//Condsider the following code sinppets
public class A {....}
public class B extends A{....}
Here B inherits A thus we say that "B IS-A A"
0
Thank you..