samedi 30 janvier 2021

Difference inheritance and interface in java or other programming languages [closed]

I just found these definitions of Inheritance and Interface. Honestly I do not understand it. Inheritance offers feature of overriding. So why is it not considere losse coupling. Also you can exchange it for another implementation.

Inheritance : It does not provide the functionality of loose coupling

Interface: It provides the functionality of loose coupling.

Aucun commentaire:

Enregistrer un commentaire