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

LinkedIn Learning

Python Object-Oriented Programming

via LinkedIn Learning

Write review

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
Learn how to use the object-oriented features of Python, including magic methods and data classes, to write more efficient and effective code.

Syllabus

Introduction
  • Python object-oriented programming
  • What you should know
  • Setting up the development environment
  • Using CoderPad
1. Object-Oriented Python
  • Object-oriented programming refresher
  • Basic class definition
  • Instance methods and attributes
  • Checking instance types
  • Class methods and members
  • Solution: Stocks
2. Inheritance and Composition
  • Understanding inheritance
  • Abstract base classes
  • Using multiple inheritance
  • Interfaces
  • Understanding composition
  • Solution: Stocks and bonds
3. "Magic" Object Methods
  • What are magic methods?
  • String representation
  • Equality and comparison
  • Attribute access
  • Callable objects
  • Solution: Compare objects
4. Data Classes
  • Defining a data class
  • Using post initialization
  • Using default values
  • Immutable data classes
  • Solution: Data classes
Conclusion
  • Next steps

Taught by

Joe Marini

Reviews

4.7 rating at LinkedIn Learning based on 1178 ratings

Start your review of Python Object-Oriented Programming

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.