Question: class Person: def speak ( self ) : print ( Hi ) class Employee ( Person ) : pass class Salesman ( Employee
class Person:
def speakself:
printHi
class EmployeePerson:
pass
class SalesmanEmployee:
def speakself:
printBuy something'
class CarsalesmanPerson:
def speakself:
printBuy a car'
Based on the code above, which of the following is true?
Question options:
A Person is an Employee is a Salesman
A Salesman is an Employee is a Person
An Employee is a Salesman is a Carsalesman
A Carsaslesman is a Salesman is an Employee is a Person
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
