
Patrick B. answered 02/25/21
Math and computer tutor/teacher
class Person:
def __init__(self,firstname,lastname,dob):
self.fname = firstname
self.lname = lastname
self.dob = dob
def getFullname(self):
return str(self.fname) + " " + str(self.lname)
def getDOB(self):
return str(dob)
firstName="Patrick"
lastName="Baldwin"
dob="02/11/1968"
myTeacher = Person(firstName,lastName,dob)
print(myTeacher.getFullname())
print("dob = "+ myTeacher.getDOB())