Please enable JavaScript to use CodeHS

AP Computer Science A (Cortado)

Class Creation

Students learn how to design and implement classes using principles of object-oriented programming. They explore encapsulation, access control, and the structure of classes with instance variables, constructors, and methods. Students write accessor and mutator methods, define behaviors using parameters and return values, and understand how object references are passed and returned.

Lessons

3.1 Abstraction and Program Design

  • Abstraction
  • Program Design
  • Abstraction and Program Design
  • Public Library System
  • Public Library System - Program Diagram Submission
  • +1 more

3.2 Impact of Program Design

  • Impact of Program Design: System Reliability
  • Real World System Reliability Responses
  • Social, Economic, and Cultural Impacts
  • Drone Delivery: Potential Impact
  • Using Someone Else's Code
  • +1 more

3.3 Anatomy of a Class

  • Anatomy of a Class
  • Grade and School Consistency
  • Access Modifiers
  • Debugging: Circle Access
  • Smart Lights
  • +2 more

3.4 Constructors

  • Constructors (Part 1)
  • Constructors (Part 2)
  • Construct a Person
  • Exploration: Astronomy
  • Constructors
  • +5 more

3.5 Methods: How to Write Them

  • Methods: How to Write Them
  • Triangle Class
  • Exploration: Paint Can
  • Debugging: Methods
  • Methods: How to Write Them
  • +3 more

3.6 Methods: Passing and Returning References of an Object

  • Methods: Passing and Returning References of an Object
  • Car Utility Class
  • Exploration: Library
  • Methods: Passing and Returning References of an Object
  • Point Utilities Class
  • +2 more

3.7 Class Variables and Methods

  • Class Variables and Methods
  • School Clubs
  • Exploration: Player Stats
  • Class Methods
  • Tournament
  • +2 more

3.8 Scope and Access

  • Scope and Access
  • Variable Scope Explorer
  • Exploration: Grocery Store
  • Local Variables and Scope
  • Debugging: Calculator
  • +2 more

3.9 this Keyword

  • this Keyword
  • Cardboard Boxes
  • Exploration: Student Enrollment
  • this Keyword
  • Debugging: Exercise Creation
  • +2 more

3.10 Mid-Unit Assessment

  • Class Creation -- Mid-Unit MCQ
  • Class Creation -- Mid-Unit FRQ

3.11 End of Unit Assessment

  • Class Creation -- Unit MCQ
  • Class Creation -- Unit FRQ #1
  • Class Creation -- Unit FRQ #2

Courses that include this module