Hello, we are really happy that you have reached us. However, since you are viewing the forum as a visitor, you cannot benefit from many features of the forum. How about taking advantage of all the features exclusive to our members by registering? You can register right now, taking just 2 minutes of your time. We would love to see you among us.
İşlevselliği başka bir sınıftan miras alan bir sınıf oluşturmak için, alt sınıfı yaratırken üst sınıfı parametre olarak gönderilir.
Örnek:
Person sınıfından özellik ve yöntemleri devralacak Student adlı bir sınıf oluşturalım.
class Student(Person):
pass
Not: Sınıfa başka özellikler veya...