Last active
December 16, 2015 19:49
-
-
Save srinivasreddy/5487635 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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