🐍 Akademia Pythona OOP
30-minutowy interaktywny kurs kodowania
PD: 0/500
Lekcja 1 – Tworzenie klas
Klasa jest planem obiektu.
Przykład
class Dog:
pass
Wyzwanie: Utwórz klasę o nazwie Pies.
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.
Gratulacje!
You completed the Python OOP Academy.
Topics Mastered:
- Classes
- Objects
- Constructors
- Attributes
- Methods
- Inheritance
