Python Object-Oriented Programming
Offered By: LinkedIn Learning
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
- Object-oriented programming refresher
- Basic class definition
- Instance methods and attributes
- Checking instance types
- Class methods and members
- Challenge: Stocks
- Solution: Stocks
- Understanding inheritance
- Abstract base classes
- Using multiple inheritance
- Interfaces
- Understanding composition
- Challenge: Stocks and bonds
- Solution: Stocks and bonds
- What are magic methods?
- String representation
- Equality and comparison
- Attribute access
- Callable objects
- Challenge: Sorting stocks
- Solution: Sorting stocks
- Defining a data class
- Using post initialization
- Using default values
- Immutable data classes
- Challenge: Data classes
- Solution: Data classes
- Next steps
Taught by
Joe Marini
Related Courses
Make an Action Bar in Unity Part 1 - Modular Action SystemCoursera Project Network via Coursera Programmazione I
University of Naples Federico II via edX Основы разработки на C++: жёлтый пояс
Moscow Institute of Physics and Technology via Coursera C++ Programming: Object-Oriented Design
Codio via edX Java: Going Further with Classes and Methods
Codecademy