O'Reilly logo

Learning Processing by Daniel Shiffman

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 22. Advanced Object-Oriented Programming

 

“Do you ever think about things that you do think about?”

 
 --Henry Drummond, Inherit the Wind

In this chapter:

  • Encapsulation.

  • Inheritance.

  • Polymorphism.

  • Overloading.

In Chapter 8, we introduced object-oriented programming (“OOP”). The driving principle of the chapter was the pairing of data and functionality into one single idea, a class. A class is a template and from that template we made instances of objects and stored them in variables and arrays. Although we learned how to write classes and make objects, we did not delve very deeply into the core principles of OOP and explore its advanced features. Now that we are nearing the end of the book (and about to leap into the world of Java in the next ...

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