-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65ff6a3
commit 01b10ec
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
class Customer: | ||
title = "" | ||
fname = "" | ||
lname = "" | ||
isblacklisted = 0; | ||
|
||
def __init__(self): | ||
self.title = "" | ||
|
||
def __str__(self): | ||
return "Title:" + self.title + " First Name:" + self.fname + " Last Name:" + self.lname + " Blacklisted:" + self.isblacklisted | ||
|
||
def setIsblacklisted(self,isblacklisted): | ||
self.isblacklisted = isblacklisted | ||
|
||
def isblacklisted(self): | ||
return self.isblacklisted | ||
|
||
def setTitle(self,title): | ||
self.title = title | ||
|
||
def getTitle(self): | ||
return self.title | ||
|
||
def setFname(self,fname): | ||
self.fname = fname | ||
|
||
def getFname(self): | ||
return self.fname | ||
|
||
def setLname(self,lname): | ||
self.lname = lname | ||
|
||
def getLname(self): | ||
return self.lname | ||
|
||
|
||
|
||
# customer1 = Customer() | ||
# customer1.setTitle("Mr.") | ||
# customer1.setFname("Barack") | ||
# customer1.setLname("Obama") | ||
# | ||
# customer2 = Customer() | ||
# customer2.setTitle("Mrs.") | ||
# customer2.setFname("George") | ||
# customer2.setLname("Bush") | ||
# | ||
# print("First Customer Title %s" , customer1.getTitle()) | ||
# print("Second Customer Title %s" , customer2.getTitle()) | ||
# print("First Customer Title %s" , customer1.getTitle()) | ||
|