Question: Write a python program to create a Person class. Person -idNum: integer -firstName: String -lastName: String -birthDate: Date < >Person(id:Integer, fName: String, lName: String, birthDate:

Write a python program to create a Person class.

Person

-idNum: integer

-firstName: String

-lastName: String

-birthDate: Date

<>Person(id:Integer, fName: String, lName: String, birthDate: Date)

+str (void): String #NOTE must print the first and last name on one line, and on the next line # the date should bevin this format: Jan 4, 2012 # hint use the strftime method to create the string for the date

+getIdNum( ): Integer

+getFirstName(): String

+getLastName(): String +getBirthDate(): Date

+setIdNum(newID: integer):void

+setFirstName(newFirstName:String): void

+setLastName(newLastName:String): void +setBirthDate(newBirthDate: Date): void

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!