Chapter . Week 1 In Review
In week one, you not only learned the basics of object-oriented programming, but how and when to apply them.
You learned that the three pillars of object-oriented programming are encapsulation, inheritance, and polymorphism. Encapsulation allows you to build self-contained pieces of software. Encapsulation is accomplished through abstraction, implementation hiding, and division of responsibility. Inheritance allows you to reuse and extend existing code. You learned that there are three methods of inheritance: for implementation reuse, for difference, and for type substitution. Polymorphism allows a single name to represent different code. Four different types of polymorphism are inclusion polymorphism, parametric polymorphism, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access