GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — pythonPrograms/inheritance/demo7.py at master · pratyush094/pythonPrograms Expand file tree/ Copy pathdemo7.pyMore file actions 18 lines (14 loc) · 261 Bytes / Copy pathdemo7.pyFile metadata and controls18 lines (14 loc) · 261 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #MULTIPLE INHERITANCE class A: def show(self): print("I am show of A") class B: def display(self): print("I am display of B") class C(A,B): def info(self): print("I am info of C") c1 = C() c1.info() c1.show() c1.display() |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |