You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
programming-basics-2022/08_python/definition/inheritance.py

15 lines
187 B

# class Base(object)
class Base:
def foo(self):
return 42
class NotBase:
def foo(self):
return 43
class A(NotBase, Base):
def bar(self):
return 41