Question: class Person: def __init__(self, name, age): self.name = name self.age = age def getOlder(self): self.age += 1 def display(self): print(self.name) print(self.age) class Student(Person, Thing): def

class Person: def __init__(self, name, age): self.name = name self.age = age def getOlder(self): self.age += 1 def display(self): print(self.name) print(self.age)

class Student(Person, Thing): def __init__(self, name, age): Thing.__init__(self, 0, 0) Person.__init__(self, name, age) def makeId(self): return self.name + "." + str(self.age) def display(self): Person.display(self) print("x:",self.x) print("y:",self.y)

In our class programs we wrote the classes Person and its child class Student. Get both of these classes from the program files. Then create a class CUNY Student which is a child class of Student; put in internal data and methods that seem appropriate to you, but at least do the following:

(a) CUNY Student should use the constructor from Student, and have additional internal data.

(b) CUNY Student should have at least one completely new method.

(c) CUNY Student should override at least one method from its parent class.

D. Draw or Create a UML diagram for the problems using UMLet.

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!