Created
August 12, 2020 06:08
-
-
Save harshitsinghai77/018b1e3520547f711f4233b557f4d3a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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