Accessing parent classes function inside a child class | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Accessing parent classes function inside a child class

class Parent: def __init__(self): def func(): print('hello') class Child(Parent): def __init__(self): # is it possible to call the func function here?

6th Dec 2018, 11:11 AM
Juho Pesonen
Juho Pesonen - avatar
1 ответ