Python Foundations · Unit 6

Unit 6: OOP

Model real things with classes, objects and methods.

  • 2–4 hrs
  • Intermediate
  • 10 lessons

Lessons

  1. Introduction to OOP ConceptsWhat OOP is, classes and objects, key concepts, real-world analogy 20–25 min
  2. Defining and Creating ClassesClass syntax, __init__ method, attributes, class structure 25–30 min
  3. Creating and Using ObjectsCreating objects, accessing attributes, calling methods, multiple objects 20–25 min
  4. Instance Variables and MethodsInstance variables, the self keyword, instance methods, accessing variables 25–30 min
  5. Class Variables and Class MethodsClass variables, class vs instance, class methods, @classmethod decorator 20–25 min
  6. Encapsulation and Access ControlEncapsulation, public attributes, protected attributes, private attributes 20–25 min
  7. Inheritance and SubclassesInheritance basics, creating subclasses, inherited methods, adding new features 25–30 min
  8. Polymorphism and Method OverridingPolymorphism, method overriding, same interface, different behavior 20–25 min
  9. The super() FunctionWhat super() is, calling parent methods, extending functionality, multiple inheritance 20–25 min
  10. OOP in Real ProjectsDesigning with OOP, building complete systems, best practices, real-world examples 30–40 min
  11. End of unit test

    Ten multiple choice questions worth 7 points each and one free response problem worth 30, so 100 in total. Score 70 or more to finish Unit 6 and unlock Unit 7.

    Take the Unit 6 test