Please enable JavaScript to use CodeHS

Advanced Python and AI Programming

Object-Oriented Programming

Students learn to design and implement classes, using constructors, getters and setters, inheritance, polymorphism, and magic methods to model real-world entities in code.

Lessons

2.1 What is Object-Oriented Programming?

  • Object-Oriented Programming Notes
  • Object-Oriented Programming
  • Object-Oriented Programming
  • Lists
  • Dictionaries
  • +2 more

2.2 Classes

  • Classes
  • Book Class
  • Classes
  • Exploration: Temperature Class
  • Movie Class
  • +2 more

2.3 Getters and Setters

  • Getters and Setters
  • Movie Ratings
  • Encapsulation
  • Getters and Setters Example
  • Getters and Setters Quiz
  • +1 more

2.4 Inheritance

  • Introduction to Inheritance
  • Multi-File Programs
  • Inheritance Example
  • Inheritance Quiz
  • Exploration: Inheritance in Action
  • +1 more

2.5 Polymorphism

  • Introduction to Polymorphism
  • Polymorphism Example
  • Polymorphism Quiz
  • Exploration: Polymorphism
  • Awards Ceremony

2.6 Constructors

  • Introduction to Constructors
  • Constructor Example
  • Constructor Quiz
  • Legit Events
  • Verifying Orders

2.7 Magic Methods

  • Introduction to Magic Methods
  • Magic Method Examples
  • Magic Method Quiz
  • Shopping Magic
  • Magic Legit Events

2.8 Composition

  • Introduction to Composition
  • Composition Example
  • Composition Quiz
  • Managing the Team

Courses that include this module