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