Book Image

Learning Object-Oriented Programming

By : Gaston C. Hillar
Book Image

Learning Object-Oriented Programming

By: Gaston C. Hillar

Overview of this book

Table of Contents (16 chapters)
Learning Object-Oriented Programming
About the Author
About the Reviewers

Chapter 4. Inheritance and Specialization

In this chapter, we will create a hierarchy of blueprints that generate objects. We will take advantage of inheritance and many related features to specialize behavior in each of the three covered programming languages. We will:

  • Use classes to abstract behavior

  • Understand the concept of simple inheritance and design a hierarchy of classes

  • Learn the difference between overloading and overriding methods

  • Understand the concept of overloading operators

  • Understand polymorphism

  • Take advantage of the prototype chain to use inheritance in JavaScript