Please enable JavaScript to use CodeHS

Utah Computer Programming 2 (2020)

Classes and Objects

Students learn the principles of object-oriented design.

Lessons

8.1 Classes and Objects

  • Classes and Objects
  • Classes and Objects
  • The Point Class
  • The Rectangle Class, Part 1
  • The Point Class, Part 2
  • +1 more

8.2 Methods

  • Methods
  • Methods
  • The Point Class, Part 3
  • The Point Class, Part 4
  • The Rectangle Class, Part 3
  • +1 more

8.3 Built-In Methods

  • Built-In Methods
  • Built-In Methods
  • The __repr__ method
  • The __eq__ method
  • The Point Class, Part 5
  • +4 more

8.4 Operator Overloading

  • Operator Overloading
  • Operator Overloading
  • The __add__ method
  • The Point Class, Part 6
  • The Rectangle Class, Part 7
  • +2 more

8.5 Class Variables vs. Instance Variables

  • Class Variables vs. Instance Variables
  • Class Variables vs. Instance Variables
  • The Point Class, Part 7
  • The Rectangle Class, Part 9
  • Cars
  • +2 more

Courses that include this module