Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. class JobApplication():
  2.     name = "Temporary Name"
  3.     dob = "1/1/1900"
  4.  
  5.     def printName(self):
  6.         print(self.name)
  7.  
  8.     def returnTheDOB(self):
  9.         return "The DOB is: " + self.dob
  10.    
  11.     def addTextToTheName(self, additonalText):
  12.         self.name = self.name + additonalText
  13.  
  14. kennGibbs = JobApplication()
  15. kennGibbs.printName()
  16.  
  17. print(kennGibbs.returnTheDOB())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement