Skip to content

Instantly share code, notes, and snippets.

@harshitsinghai77
Created August 12, 2020 06:08
Show Gist options
  • Save harshitsinghai77/018b1e3520547f711f4233b557f4d3a4 to your computer and use it in GitHub Desktop.
Save harshitsinghai77/018b1e3520547f711f4233b557f4d3a4 to your computer and use it in GitHub Desktop.
class ClassA():
def hi(self):
print("Hey")
class ClassB():
def hi(self):
print("Hello")
def another_method(self):
print("Another method")
class ClassC(ClassA, ClassB):
pass
c = ClassC()
c.hi()
c.another_method()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment