Quantcast
Channel: Learn Java Programming
Viewing all articles
Browse latest Browse all 39

IS-A Relationship : Java – Inheritance Tutorial

$
0
0

Java – Inheritance Basics : IS-A Relationship with Example : IS-A is a way of saying : This object is a type of that object. public class Vehicle{ } public class FourWheeler extends Vehicle{ } public class TwoWheeler extends Vehicle{ } public class WagonR extends FourWheeler{ } Conclusions from above Example : From the above(...)

The post IS-A Relationship : Java – Inheritance Tutorial appeared first on Learn Java Programming.


Viewing all articles
Browse latest Browse all 39

Trending Articles