Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

DataCamp

Introduction to Object-Oriented Programming in Python

via DataCamp

Overview

Discover the fundamental concepts of object-oriented programming (OOP), building custom classes and objects!

Embark on a journey into the heart of Python programming with our comprehensive course offering a foundation in the principles and practices of object-oriented programming (OOP). Through a series of hands-on exercises and real-world examples, learners will gain proficiency in leveraging the power of Python's OOP paradigm to create efficient, modular, and reusable code.

Foundations of OOP
Delve into the fundamental concepts that form the foundation of object-oriented programming. You'll discover the core principles of classes and objects, learn how to define and instantiate objectives in Python and explore how to assign attributes during instantiation.

Inheritance
Expand your knowledge by mastering inheritance and creating subclasses that build on functionality defined in other classes. You'll distinguish between class-level and instance-level data, implement class methods, and customize the functionality of subclasses!

Equality, Exception Handling, and Best Practices
Explore the versatility of Python in handling object comparisons and discover techniques for effective string representation of objects, enabling human-readable outputs.
Learn how to fortify your code against unexpected errors and enhance its reliability through exception handling. Understand the importance of error detection and graceful error recovery, ensuring a smoother execution of your programs. Acquire best practices for writing clean, maintainable, and Pythonic code that adheres to OOP principles.

Syllabus

  • OOP Fundamentals
    • Learn what object-oriented programming (OOP) is, how it differs from procedural programming, and how it can be applied. You'll define your own custom classes containing methods, attributes, and constructors, and use them to create objects!
  • Inheritance and Polymorphism
    • Discover two of OOP's core concepts: inheritance and polymorphism. Learn how to implement them to minimize code re-use and extend functionality, along with reviewing the differences between class-level data and instance-level data.
  • Integrating with Standard Python
    • Learn how to compare objects, define and customize string representations of objects, and even how to apply inheritance to create and catch custom exceptions, enabling bespoke error-handling.

Taught by

George Boorman

Reviews

Start your review of Introduction to Object-Oriented Programming in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.