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 |
| < +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
Get step-by-step solutions from verified subject matter experts
