Benefits of OOP
- Abstraction, localization of errors,
and localization of changes:
in this regard, OOP offers all of the advantages of ADTs.
- Code reuse:
OOP offers the possibility of writing a body of code once,
and then reusing that code over and over again.
Through support for templates, inheritance, and polymorphism,
OOP ensures that object code can be used in
many different contexts.