O'Reilly logo

JavaScript Object Programming by Martin Rinehart

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 3

image

Inheritance Theory

Ready for a dose of theory? We can’t code inheritance unless we know what “inheritance” means. And it mean a different things in OOP-land than it means in prototype-land.

Before discussing ways to implement inheritance, and alternatives for achieving its benefits, we have to define inheritance. As class-based inheritance involves classes, we need to define “classes” with enough rigor so that we can write some code.

When we say “object-oriented programming” or “OOP,” we are not speaking of general programming using objects. We are speaking specifically of programming in a language such as Java or Visual Basic that uses ...

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