YoVDO

Python Object-Oriented Programming

Offered By: LinkedIn Learning

Tags

Python Courses Inheritance Courses Multiple Inheritance Courses

Course Description

Overview

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
1. Object-Oriented Python
  • Object-oriented programming refresher
  • Basic class definition
  • Instance methods and attributes
  • Checking instance types
  • Class methods and members
  • Challenge: Stocks
  • Solution: Stocks
2. Inheritance and Composition
  • Understanding inheritance
  • Abstract base classes
  • Using multiple inheritance
  • Interfaces
  • Understanding composition
  • Challenge: Stocks and bonds
  • Solution: Stocks and bonds
3. "Magic" Object Methods
  • What are magic methods?
  • String representation
  • Equality and comparison
  • Attribute access
  • Callable objects
  • Challenge: Sorting stocks
  • Solution: Sorting stocks
4. Data Classes
  • Defining a data class
  • Using post initialization
  • Using default values
  • Immutable data classes
  • Challenge: Data classes
  • Solution: Data classes
Conclusion
  • Next steps

Taught by

Joe Marini

Related Courses

Introduction à la programmation orientée objet (en Java)
École Polytechnique Fédérale de Lausanne via Coursera
Useful Genetics Part 2
The University of British Columbia via Coursera
Object-Oriented Programming
Indian Institute of Technology Bombay via edX
Java für Einsteiger
openHPI
Computing: Art, Magic, Science - Part II
ETH Zurich via edX