Ratings & reviews

3.913 ratings

Sam P.

161 days ago

spelling mistakes, programs that are correct but say they arent, big OOPsies on this course

A p.

169 days ago

Wesley E.

170 days ago

46%
23%
15%
8%
8%
info

Complete all chapters to get certificate

0%

OOP Concepts

chevron

Let's start! The Object-Oriented Programming basic concepts are waiting for you here! In this section, you will get acquainted with the most important concepts for understanding Object-Oriented Programming.

What is Object-Oriented Programming?

Class

Attributes

Initialization

Challenge: User

self

Methods

Challenge: User Auth

Inheritance

chevron

Inheritance - the first of the OOP principles. The entities can be inherited from other ones. You learn how it works in code here.

What is Inheritance?

Challenge: Admin

Multiple Inheritance

Method Resolution Order

Superclass

Useful Functions

Encapsulation

chevron

Inheritance - the second of the OOP principles. The attributes and methods can be closed inside the class and used by the class only. Here you learn how to code with different access modifiers.

What is Encapsulation?

Public

Protected

Private

Challenge: Protected Password

Properties

@property

@property.setter

Challenge: Password Validation

Polymorphism and Abstraction

chevron

Polymorphism and abstraction are the third and fourth of the OOP principles. These principles are not easy to understand. Here you will get to know them in the simplest ways.

What is Polymorphism?

Mixins

Challenge: AuthMixin

What is Abstraction?

Abstract Class

Abstract Method

Challenge: AbstractAdmin

Magic Methods

chevron

The magic methods make sandbox from Python. It's a unique Python tool you can't see in other languages. Here you learn how to use these methods and about the flexibility that they bring to Python.

What are magic methods?

repr and str

Math Magic Methods

Comparison Magic Methods

Challenge: Users Representation and Comparison

Summary