Last active
December 16, 2015 19:49
-
-
Save srinivasreddy/5487635 to your computer and use it in GitHub Desktop.
Revisions
-
srinivasreddy revised this gist
Apr 30, 2013 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,12 +7,14 @@ class B(A): 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. -
srinivasreddy revised this gist
Apr 30, 2013 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -15,5 +15,4 @@ class B(object):pass class C(A,B):pass If a single class inherits from two or more classes then it is called Multiple inheritance. -
srinivasreddy created this gist
Apr 30, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ class A(object): pass class B(A): pass class C(B): pass This example shows multi-level inheritance, class A(object): pass class B(object):pass class C(A,B):pass This example shows multiple inheritance.