0

Explain is-a relation ship in java

About java

21st Jan 2019, 2:44 PM
Rodda Sri Ranga Sudha
Rodda Sri Ranga Sudha - avatar
3 odpowiedzi
+ 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.
21st Jan 2019, 3:15 PM
David Carroll
David Carroll - avatar
+ 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"
21st Jan 2019, 2:58 PM
Rishi Anand
Rishi Anand - avatar
0
Thank you..
5th Feb 2019, 9:16 AM
Rodda Sri Ranga Sudha
Rodda Sri Ranga Sudha - avatar