SyntaxFix
Write A Post
Hire A Developer
Questions
class MyParent: def sayHi(): print('Mamma says hi')
from path.to.MyParent import MyParent class ChildClass(MyParent): pass
An instance of ChildClass will then inherit the sayHi() method.
ChildClass
sayHi()