Skip to content

Commit

Permalink
Basic
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjanaPurbia authored Jul 24, 2021
1 parent d0b0814 commit 0a2c8ec
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions multilevel_inheritance.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class grandpa:
name="xyz"
surname='Purbia'

class Papa(grandpa):
name='pqr' #name is over write

class Me(Papa):
name="Sanjana"

me=Me()
print(me.name,me.surname)

0 comments on commit 0a2c8ec

Please sign in to comment.