Professional Documents
Culture Documents
Single Inheritance: Source Code
Single Inheritance: Source Code
SOURCE CODE:
class bgs:
def __init__(self):
self.ask=''
def Input_data(self):
def Display(self):
class grnd(bgs):
def __init__(self):
self.info=''
def Input(self):
def Show(self):
Football
Tennis
Cricket
Skating
Badminton
Basketball'''
o=grnd()
o.Input_data()
o.Input()
o.Display()
o.Show()
OUTPUT: