Please enable JavaScript to use CodeHS

Chapter 2

Using Objects

2.2 Creating and Storing Objects (Instantiation)

Parts of a Class

Method Signatures and Parameters

Creating New Objects

Constructor Overload

Using Existing Objects

The Rectangle Class

The Point Class

The Student Class

Check Your Understanding

  1. Invalid Answer

Exercise: Instance Variables for Your Cat