Is a and has a relationship in Java example?

In Java, a Has-A relationship simply means that an instance of one class has a reference to an instance of another class or an other instance of the same class. For example, a car has an engine, a dog has a tail and so on . In Java, there is no such keyword that implements a Has-A relationship.19 Tem 2019

Sizin İçin Seçtik  Is aggregation an inheritance?

Leave a Reply

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