Skip to content

Instantly share code, notes, and snippets.

@srinivasreddy
Last active December 16, 2015 19:49
Show Gist options
  • Select an option

  • Save srinivasreddy/5487635 to your computer and use it in GitHub Desktop.

Select an option

Save srinivasreddy/5487635 to your computer and use it in GitHub Desktop.
class A(object):
pass
class B(A):
pass
class C(B):
pass
#The above example shows multi-level inheritance,
class A(object): pass
class B(object):pass
class C(A,B):pass
#The above example shows multiple inheritance.
#If a single class inherits from two or more classes then it is called Multiple inheritance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment