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, ...

Get Sams Teach Yourself Object Oriented Programming in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.