JavaScript Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 2.10

Inheritance of Properties and Methods through the Prototype Object Chain

This chapter provides introductions and tutorial examples on object property and method inheritance. Topics include inheriting properties and methods from constructor's prototype, reviewing built-in default properties and methods, using the 'constructor' property, adding local and inherited properties, overriding inherited properties.

Inheriting from Constructor's Prototype Object

Changing the Constructor's Prototype Object

Inheriting Properties from Two Level Prototype Objects

Built-in Properties and Methods in "Object.prototype"

Using "hasOwnProperty()" Method to Test Inherited Properties

Setting the "constructor" Property in the "prototype" Object

Adding Local Methods at the Object Level

Adding Inherited Methods at the Prototype Level

Building Multiple Levels of Prototype Objects

Prototype Object Chain Summary

Dr. Herong Yang, updated in 2008
Inheritance of Properties and Methods through the Prototype Object Chain