Skip to content

Instantly share code, notes, and snippets.

@rdcoder33
Last active December 26, 2018 12:02
Show Gist options
  • Save rdcoder33/3c5669a0a1f03598087031d21cf25665 to your computer and use it in GitHub Desktop.
Save rdcoder33/3c5669a0a1f03598087031d21cf25665 to your computer and use it in GitHub Desktop.
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