Jun-11-2021, 07:56 AM
You had some questions included in the main.py file.
I hope this helps you in understanding what is happening. Don't forget to read the link of Jeffsummers.
(Jun-09-2021, 11:35 PM)CWillis105 Wrote:Yes it works. But it should not work, that is the assignment. So replace "Email" with "__Email" in the Customer.py file as Griboullis suggested.myCustomer.Email = "THIS IS A BAD EMAIL ADDRESS" #WORKS
(Jun-09-2021, 11:35 PM)CWillis105 Wrote:This will work in the sense it gives no error. It adds a name "AccountNumber", not to the class but to the object instance "myCustomer". But this name will not interfere with "__AccountNumber".myCustomer.AccountNumber = "BAD Account Number" #Doesnt Work...OR DOES IT ?
(Jun-09-2021, 11:35 PM)CWillis105 Wrote:Right. The method "getAccountNumber()" uses "__AccountNumber", not the newly added "AccountNumber".print(myCustomer.getAccountNumber()) #OLD Account Number still in tact
I hope this helps you in understanding what is happening. Don't forget to read the link of Jeffsummers.