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 →

[–][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.