Jun 17, 2019 in JAVA
Q: What is ‘HAS A’’ relationship in java?

‘Has a ‘ relationship is also known as “composition or Aggregation”. As in inheritance we have ‘extends’

keyword we don’t have any keyword to implement ‘Has a’ relationship in java. The main advantage of

‘Has-A‘ relationship in java code reusability.

1 Answer

0 votes
Jun 17, 2019

‘Has a ‘ relationship is also known as “composition or Aggregation”. As in inheritance we have ‘extends’

keyword we don’t have any keyword to implement ‘Has a’ relationship in java. The main advantage of

‘Has-A‘ relationship in java code reusability.

Click here to read more about JAVA
Click here to read more about Insurance

Related questions

0 votes
Jun 16, 2019 in JAVA
...