Please enable JavaScript to use CodeHS

IB Computer Science SL Resources

Classes and Objects

Learn the principles of object-oriented design.

Lessons

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

11.2 Methods

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

11.3 Built-In Methods

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

11.4 Operator Overloading

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

11.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
  • +3 more

11.6 Inheritance

  • Inheritance
  • Inheritance
  • Animals
  • Inheritance and Polymorphism
  • Food, Part 1
  • +2 more

11.7 Hidden Attributes

  • Hidden Attributes
  • Hidden Attributes
  • Encapsulation
  • Secret Instance Variable
  • Only Even Rectangles Counted
  • +2 more

11.8 Namespaces

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

11.9 Modules

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

11.10 Designing Classes

  • UML Class Diagrams
  • UML Class Diagrams Reflection
  • Designing Classes with UML
  • Designing Classes with UML Submission

11.11 Classes and Objects Quiz

  • Classes and Objects Unit Test
  • Classes and Objects Badge

Courses that include this module