Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class JobApplication():
- name = "Temporary Name"
- dob = "1/1/1900"
- def printName(self):
- print(self.name)
- def returnTheDOB(self):
- return "The DOB is: " + self.dob
- def addTextToTheName(self, additonalText):
- self.name = self.name + additonalText
- kennGibbs = JobApplication()
- kennGibbs.printName()
- print(kennGibbs.returnTheDOB())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement