O'Reilly logo

Sams Teach Yourself Object Oriented Programming in 21 Days, Second Edition by Anthony Sintes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required