Question: Given the following code, what would be the output? class Person: def _ _ init _ _ ( self , name ) : self.name =

Given the following code, what would be the output?
class Person:
def __init__(self, name):
self.name = name
def description(self):
return "My name is: "+ self.name
import person
class Employee(person.Person):
def description(self):
return super().description()+""+" and I do work."
import person
import employee
def main():
e1= person.Person("Gary")
e2= employee.Employee("Bill")
print(e2.description())
main()
Group of answer choices
My name is Bill
My name is Gary
My name is Bill and I do work.
My name is Gary and I do work.

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 Programming Questions!