+ 1

My primitive banking program

Hello gang, I wrote (or tried) to write a primitive banking tool, which does the following: 1. Withdraw and deposit 2. convert 3 currencies (dollar, euro, pound) into each other. I will post the syntax here, since, unsurprisingly it doesn't work. Since I'm still struggling with clases I tried to create a class for transactions and create public, private and protected groups for each one of these procecies. I would really appriciate some feedback so I can learn as much a possible. Thanks in advance, Dawid. Here is the syntax: http://pasted.co/c846d8d5

11th Jan 2019, 1:39 PM
Dawid
Dawid - avatar
2 odpowiedzi
+ 4
Your code has tons of errors. You really should start small and add tiny pieces so the number of errors at one time is manageable. You can not call protected or private methods in main. You didn't allocate instances of the class in main so those methods can't be used. I could fix your errors, but it would be better for you to do so as you could learn faster. Paste your code into SoloLearn Playground and link it here. I'll comment on your code telling you changes to make, until it runs.
11th Jan 2019, 3:36 PM
John Wells
John Wells - avatar
+ 1
thank you for the answer, I have posted the code on my profile since i cant post it in here for some reason.
11th Jan 2019, 8:21 PM
Dawid
Dawid - avatar