Please enable JavaScript to use CodeHS

{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} {# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #}

Chapter 9

Inheritance

{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 9.1 Inheritance Superclasses and Subclasses The extends keyword Person Superclass Vehicle Superclass High School Student Check Your Understanding Exercise: Computers
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 9.2 Writing Constructors for Subclasses super Keyword The Object Class Student Subclass Shape Class Implicit Call to Super Check Your Understanding Exercise: Clothing Store
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 9.3 Overriding Methods How to Override a Method Class Hierarchy Considerations Calling Override Methods Square is a Rectangle Student toString Restaurant Bills Check Your Understanding Exercise: Dogs Bark
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 9.4 super Keyword Using the super Keyword Animal Class Square Class Apple Pie Check Your Understanding Exercise: Bank Accounts
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 9.5 Creating References Using Inheritance Hierarchies Java Documentations & Class Hierarchy Superclass as a Reference Type Applications of Polymorphism Animal Sounds Shape Areas Person Class Check Your Understanding Exercise: Creating .equals()
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 9.6 Polymorphism Polymorphism in Action Modified Student Class Using Person Methods Vehicle Methods Check Your Understanding Exercise: Fun with Solids
{# number the lesson by where it sits in this module: a lesson shared with another module must not link to that other module's number #} 9.7 Object Superclass Object Class Methods Default Values Override toString Override equals Check Your Understanding Exercise: Equal?