Please enable JavaScript to use CodeHS

AP Computer Science A (Nitro - 2019 AP CSA Framework)

Using Objects

Students learn how to create and use classes and objects. This unit builds on students’ ability to write expressions by introducing them to Math class and String methods to write expressions for generating random numbers and other more complex operations.

Lessons

2.1 Objects: Instances of Classes

  • Objects: Instances of Classes
  • Quiz: Classes and Objects
  • Multi-File Exercises in Java
  • Rectangle Skeleton
  • GrilledCheese Skeleton
  • +4 more

2.2 Creating and Storing Objects (Instantiation)

  • Creating and Storing Objects
  • Quiz: Constructors
  • The Rectangle Class
  • The Point Class
  • The Student Class
  • +5 more

2.3 Overloading

  • Method Overloading
  • Method Overloading Quiz
  • Overloaded Rectangle
  • Overloaded GrilledCheese
  • Null Pointer Exception
  • +4 more

2.4 Calling a Void Method

  • Calling a Void Method
  • Quiz: Void Methods
  • Area of a Rectangle
  • Program Flow
  • Hello!
  • +3 more

2.5 Calling a Void Method with Parameters

  • Calling a Void Method with Parameters
  • Methods and Parameters
  • Rectangle
  • Moving a Point
  • Using the Point Class
  • +4 more

2.6 Calling a Non-void Method

  • Calling a Non-void Method
  • Quiz: Non-Void Methods
  • Rectangle
  • Desks in a Room
  • Activity Log
  • +3 more

2.7 String Objects

  • String Objects
  • String Objects
  • Immutable Strings
  • String Concatenation
  • Rectangle Dimensions
  • +4 more

2.8 String Methods

  • String Methods
  • String Methods
  • Bigger Strings?
  • Chopping Strings
  • Object Concatenation
  • +5 more

2.9 Wrapper Classes: Integers and Doubles

  • Wrapper Classes
  • Quiz: Wrapper Classes
  • Creating Integers
  • Using Doubles
  • Autoboxing Example
  • +3 more

2.10 Using the Math Class

  • Using the Math Class
  • Quiz: Static Methods
  • Using the Math Class
  • Static Methods: Rectangle
  • Generating Random Numbers
  • +3 more

2.11 Using Objects Quiz

  • Using Objects Quiz