For example, if a class Bulb inherits another class Device, then we can say that Bulb is having is-a relationship with Device , which implies Bulb is a device.
Is a relationship example?
For example, if a class Bulb inherits another class Device, then we can say that Bulb is having is-a relationship with Device , which implies Bulb is a device.