Python: Introduction to OOP - course 3900 rub. from Hexlet, training 12 hours, Date: November 30, 2023.
Miscellaneous / / December 04, 2023
You will become familiar with concepts such as classes and objects, and discover the basic principles of OOP such as encapsulation, polymorphism and inheritance. As a result, you will learn to describe the entities of the subject area, understand how objects work in Python from the inside and how to use exceptions in code. The knowledge from this course will help you write more structured and flexible code that is easy to expand and change. To make learning easier, it is worth studying in advance the functions and main types of collections in Python: lists and dictionaries.
Tests
These are practical tasks that we recommend completing after completing the course. The assignments will help you gain additional experience in programming and consolidate your acquired skills. Typically we recommend completing 3-5 tests. But if it doesn't work out, don't despair. Just come back to them later.
3
Classes, namespaces, attributes
1. Complexity and abstraction
Learn about the origins of the concept of OOP, get acquainted with the concepts of abstraction and complexity management.
theory
2. OOP Concepts
Get acquainted with the basic concepts of OOP: classes, objects, inheritance, encapsulation, polymorphism.
theory
tests
3. Classes, namespaces, attributes
Become familiar with the concept of classes and the syntax for describing classes and their attributes.
theory
tests
exercise
4. Singleton Objects and Global Variables
Find out why you shouldn't modify classes after they are declared or keep mutable objects in their attributes, and how this applies to modules.
theory
tests
exercise
5. Instantiating classes and instances
Find out how class instances are created, how they depend on the class itself and what, on the contrary, they have their own.
theory
tests
exercise
6. Methods
Get acquainted with the syntax of describing methods, the concept of connection between a method and an object. Learn to call both related and unrelated methods.
theory
tests
exercise
7. Initialization and protocols
Learn how to customize newly created objects. Become familiar with the concept of protocols.
theory
tests
exercise
8. Properties
Learn how to declare a "property" - a class attribute that is calculated dynamically. Learn to manage property changes.
theory
tests
exercise
9. Inheritance
Get acquainted with the mechanism of class inheritance in Python. Learn how inheritance helps you reuse object code.
theory
tests
exercise
10. Exceptions
Get acquainted with exceptions - an important mechanism of the Python language, designed to handle errors and widely use class inheritance.
theory
tests
exercise
11. Additional materials
Articles and videos curated by the Hexlet team. Will help you dive deeper into the topic of the course