creating the class in python
creating the class in python
class Phone :
def make_call(self):
print("Making phone call")
def play_game(self):
print("playing game")
p1 = Phone()
p1.make_call()
out put
Making phone call
p1.play_game()
out put
playing game
Comments
Post a Comment