Opinions on object oriented programming

BlitzMax Forums/BlitzMax Programming/Opinions on object oriented programming

The way I like to think about OOP is to break it down into 3 categories.

1. Encapsulation- This is my favorite. Type Declarations bundle up an abstract concept neatly and keep it tidy fromthe rest of my code. Done Right, it's reusable and clean.

2. Composition- I like to build my types out of other types

3. Polymorphism- I try to program to a supertype whenever it makes sense.