What is composition how it is used?

The main reason to use composition is that it allows you to reuse code without modeling an is-a association as you do by using inheritance . That allows stronger encapsulation and makes your code easier to maintain as Joshua Bloch explains in the 3rd edition of his book Effective Java.16 Oca 2018

Sizin İçin Seçtik  Are hanging leg raises better than sit ups?

Leave a Reply

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

What is composition how it is used?

The main reason to use composition is that it allows you to reuse code without modeling an is-a association as you do by using inheritance . That allows stronger encapsulation and makes your code easier to maintain as Joshua Bloch explains in the 3rd edition of his book Effective Java.16 Oca 2018

Sizin İçin Seçtik  Devlet ne kadar para bastı?

Leave a Reply

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