Question: Identify the concept used in the following code. class Coach: def _ _ init _ _ ( self , cname ) : self.coach _ name

Identify the concept used in the following code.
class Coach:
def __init__(self, cname):
self.coach_name = cname
class Player:
def __init__(self, pname):
self.player_name = pname
class Game (Player, Coach):
def __init__(self, gname, pname, cname):
Player.__init__(self,pname)
Coach.__init__(self,cname)
self.game = gname
def get_game (self):
print (self.game, self.player_name, self.coach_name)
Group of answer choices
Multiple inheritance
Multilevel inheritance
Inheritance using mixins
Inheritance using derived class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!