Skip to content

Commit f362d9e

Browse files
committed
fixed Advanced OOP typo
1 parent 4b89720 commit f362d9e

File tree

6 files changed

+1237
-11
lines changed

6 files changed

+1237
-11
lines changed

12-Final Capstone Python Project/.ipynb_checkpoints/03-Final Capstone Suggested Walkthrough-checkpoint.ipynb

+11-5
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232
"source": [
233233
"#### Step 5: Create a Customer class\n",
234234
"\n",
235-
"For this next phase, let's set up a Customer class that has a customer ID and can contain any number and/or combination of Account objects."
235+
"For this next phase, let's set up a Customer class that holds a customer's name and PIN and can contain any number and/or combination of Account objects."
236236
]
237237
},
238238
{
@@ -242,13 +242,16 @@
242242
"outputs": [],
243243
"source": [
244244
"class Customer:\n",
245-
" def __init__(self, name, cust_id):\n",
245+
" def __init__(self, name, PIN):\n",
246246
" self.name = name\n",
247-
" self.cust_id = cust_id\n",
247+
" self.PIN = PIN\n",
248248
" \n",
249249
" # Create a dictionary of accounts, with lists to hold multiple accounts\n",
250250
" self.accts = {'C':[],'S':[],'B':[]}\n",
251251
" \n",
252+
" def __str__(self):\n",
253+
" return self.name\n",
254+
" \n",
252255
" def open_checking(self,acct_nbr,opening_deposit):\n",
253256
" self.accts['C'].append(Checking(acct_nbr,opening_deposit))\n",
254257
" \n",
@@ -400,10 +403,13 @@
400403
"outputs": [],
401404
"source": [
402405
"class Customer:\n",
403-
" def __init__(self, name, cust_id):\n",
406+
" def __init__(self, name, PIN):\n",
404407
" self.name = name\n",
405-
" self.cust_id = cust_id\n",
408+
" self.PIN = PIN\n",
406409
" self.accts = {'C':[],'S':[],'B':[]}\n",
410+
"\n",
411+
" def __str__(self):\n",
412+
" return self.name\n",
407413
" \n",
408414
" def open_checking(self,acct_nbr,opening_deposit):\n",
409415
" self.accts['C'].append(Checking(acct_nbr,opening_deposit))\n",

12-Final Capstone Python Project/03-Final Capstone Suggested Walkthrough.ipynb

+11-5
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232
"source": [
233233
"#### Step 5: Create a Customer class\n",
234234
"\n",
235-
"For this next phase, let's set up a Customer class that has a customer ID and can contain any number and/or combination of Account objects."
235+
"For this next phase, let's set up a Customer class that holds a customer's name and PIN and can contain any number and/or combination of Account objects."
236236
]
237237
},
238238
{
@@ -242,13 +242,16 @@
242242
"outputs": [],
243243
"source": [
244244
"class Customer:\n",
245-
" def __init__(self, name, cust_id):\n",
245+
" def __init__(self, name, PIN):\n",
246246
" self.name = name\n",
247-
" self.cust_id = cust_id\n",
247+
" self.PIN = PIN\n",
248248
" \n",
249249
" # Create a dictionary of accounts, with lists to hold multiple accounts\n",
250250
" self.accts = {'C':[],'S':[],'B':[]}\n",
251251
" \n",
252+
" def __str__(self):\n",
253+
" return self.name\n",
254+
" \n",
252255
" def open_checking(self,acct_nbr,opening_deposit):\n",
253256
" self.accts['C'].append(Checking(acct_nbr,opening_deposit))\n",
254257
" \n",
@@ -400,10 +403,13 @@
400403
"outputs": [],
401404
"source": [
402405
"class Customer:\n",
403-
" def __init__(self, name, cust_id):\n",
406+
" def __init__(self, name, PIN):\n",
404407
" self.name = name\n",
405-
" self.cust_id = cust_id\n",
408+
" self.PIN = PIN\n",
406409
" self.accts = {'C':[],'S':[],'B':[]}\n",
410+
"\n",
411+
" def __str__(self):\n",
412+
" return self.name\n",
407413
" \n",
408414
" def open_checking(self,acct_nbr,opening_deposit):\n",
409415
" self.accts['C'].append(Checking(acct_nbr,opening_deposit))\n",

0 commit comments

Comments
 (0)