(I will probably keep returning to this topic, for I have struggled with several small segments on this).
So the instructions that I have to follow are: "create one Account object using the 3-argument constructor and pass these initial values – ID: 101, balance: 0.0, PIN: 1234."
So far I've got:
I have another class called Account where I believe I have to use this constructor that I wrote:public Account(101, 0.0, 1234) { //what do I put here? I don't think I need to return anything..? }
Am I passing the values correctly? "public Account" is getting an error; some of the solutions talk about EnumBody which I haven't learned in class yet. And I don't know what I'm supposed to put in the body...public Account(int i, double bal, int pi) { ID = i; balance = bal; PIN = pi; }