🐍 Python OOP აკადემია
30 წუთიანი ინტერაქტიული კოდირების კურსი
XP: 0/500
გაკვეთილი 1 – კლასების შექმნა
კლასი არის ობიექტის გეგმა.
მაგალითი
class Dog:
pass
გამოწვევა: შექმენით კლასი სახელწოდებით Dog.
გაკვეთილი 2 – ობიექტების შექმნა
შექმენით ობიექტი სახელად my_dog Dog კლასიდან.
გაკვეთილი 3 – კონსტრუქტორები
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
