subject

Suppose class Person is the parent of class Employee. Complete the following code: class Person :
def __init__(self, first, last) :
self. firstname = first
self. lastname = last
def Name(self) :
return self. firstname + " " + self. lastname
class Employee(Person) :
def __init__(self, first, last, staffnum) :
Person.__init__(self, first, last) self. staffnumber = staffnum
def GetEmployee(self) :
return self. Name() + ", " + self. staffnumber
x = Person("Sammy", "Student")
y = Employee("Penny", "Peters", "805")
print(x. Name())
print(y. GetEmployee())

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:30
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
You know the right answer?
Suppose class Person is the parent of class Employee. Complete the following code: class Person : <...
Questions
question
Geography, 23.09.2020 19:01
question
Mathematics, 23.09.2020 19:01
question
Mathematics, 23.09.2020 19:01