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 initself cname:
self.coachname cname
class Player:
def initself pname:
self.playername pname
class Game Player Coach:
def initself gname, pname, cname:
Player.initselfpname
Coach.initselfcname
self.game gname
def getgame self:
print selfgame, self.playername, self.coachname
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
