Last active
December 26, 2018 12:02
-
-
Save rdcoder33/3c5669a0a1f03598087031d21cf25665 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 Superclass: | |
def class_names(self): | |
return 'I am super class' | |
class ClassA(Superclass): | |
def class_names(self): | |
return 'I am class A' | |
class ClassB(Superclass): | |
def class_names(self): | |
return 'I am class B' | |
class ClassC(ClassA, ClassB): | |
def class_names(self): | |
return 'I am class C' | |
obj_c = ClassC() | |
print(obj_c.class_names()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment