Question: class Person: def speak ( self ) : print ( Hi ) class Employee ( Person ) : pass class Salesman ( Employee

class Person:
def speak(self):
print("Hi")
class Employee(Person):
pass
class Salesman(Employee):
def speak(self):
print('Buy something')
class Carsalesman(Person):
def speak(self):
print('Buy a car')
Based on the code above, which of the following is true?
Question 5 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 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!