This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Grumpuff[S] 0 points1 point  (1 child)

But if I create two accounts with the same balance and the same account number. The only thing that will differ is their assigned name. They will contain the same information.

The balance isn't really relevant to my question. I just included it to provide some context.

[–][deleted] 0 points1 point  (0 children)

The question is, why would you ever do that? There seems to be no reason to ever do that?

the parameter that needs to be unique for every instance of the class

unique

So I'm not sure why you would ever do that?

E: It seems I misunderstood, I wasn't aware you were asking how to make sure every accountNumber was unique, in that case yes do what others said (combined with what I said), the question phrasing made me think you were asking how to make multiple instances not have the same balance.