Accessing parent classes function inside a child class | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuesta