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.

Leave a Reply

Your email address will not be published. Required fields are marked *

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.

Leave a Reply

Your email address will not be published. Required fields are marked *