🐍 Академия ООП Python
30-минутный интерактивный курс кодирования
Опыт: 0/500
Урок 1 – Создание классов
Класс — это проект объекта.
Пример
class Dog:
pass
Задача: Создайте класс под названием Dog.
Lesson 2 – Creating Objects
Create an object named my_dog from the Dog class.
Lesson 3 – Constructors
Create an __init__ method with a name parameter.
Lesson 4 – Methods
Create a bark() method.
Lesson 5 – Inheritance
Create a Dog class that inherits from Animal.
🏆 Congratulations!
You completed the Python OOP Academy.
Topics Mastered:
- Classes
- Objects
- Constructors
- Attributes
- Methods
- Inheritance
