✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Mis prinditakse konsooli kui järgnev koodijupp tööle panna?
class Student: def say_hello(self):
print("Hello!")
class ITStudent(Student): def say_hello(self):
print("Hello! Does anybody need help with their computer?")
alice = Student()
mary = ITStudent()
alice.say_hello()mary.say_hello()