Please enable JavaScript to use CodeHS

South Carolina Intermediate Computer Programming

Classes and Objects

Students learn the principles of object-oriented design. They will use classes and objects and learn how to break code down in these structures.

Lessons

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

6.2 Methods

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

6.3 Built-In Methods

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

6.4 Operator Overloading

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

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

6.6 Inheritance

  • Inheritance
  • Inheritance
  • Animals
  • Food, Part 1
  • Animals with Lists
  • +1 more

6.7 Hidden Attributes

  • Hidden Attributes
  • Hidden Attributes
  • Secret Instance Variable
  • Only Even Rectangles Counted
  • Level Up
  • +1 more

6.8 Namespaces

  • Namespaces
  • Namespaces
  • Classes
  • Subclasses
  • Food, Part 3

6.9 Modules

  • Modules
  • Modules
  • Importing Entire Module
  • Importing Individual Components
  • Benefits of Individual Importing
  • +1 more

6.10 Classes and Objects Quiz

  • Classes and Objects Unit Test
  • Classes and Objects Badge