Please enable JavaScript to use CodeHS

Idaho High School Computer Science

Classes and Objects

In this module, students will learn the basics of object oriented programming. Students will learn what objects are, create classes, use methods, overload operators, and understand the difference between class and instance variables.

Lessons

12.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

12.2 Methods

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

12.3 Built-In Methods

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

12.4 Operator Overloading

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

12.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

12.6 Classes and Objects Quiz

  • Classes and Objects Unit Test
  • Classes and Objects Badge

Courses that include this module