7
Object-Oriented Programming
Learning Objectives
By the end of this chapter, you will be able to:
- Explain different OOP concepts and the importance of OOP
- Instantiate a class
- Describe how to define instance methods and pass arguments to them
- Declare class attributes and class methods
- Describe how to override methods
- Implement multiple inheritance
This lesson introduces object-oriented programming as implemented in Python. We also cover classes and methods, as well as overriding methods and inheritance.
Introduction
A programming paradigm is a style of reasoning about programming problems. Problems, in general, can often be solved in multiple ways; for example, to calculate the sum of 2 and 3, you can use a calculator, you can use your ...
Get Python Fundamentals now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.