Help With hints on how can i make multipull accounts using like arrays or something similar to array
i just want an easy way this is my code
GIve me hitns only
11 Replies
without <> too
Any reason you want to avoid generics?
I assume that's what you mean by "without <>"
i have no idea whats this
i gtg
Well, in any case, you already seem to have a bank account class
So just have an array or a list of them
Boom, you have multiple
can you show me an example? since ik arrays have a limit on how much you want inside And One Doesent
or with vectors like show me the diffs with both
Yes,
List<T>
is dynamically-sized, and T[]
(array) has a preset size
And how would you use a list, for example? Well, quite simple
Can you explain it whats its doing? like whats var?
var is a compile time variable that the compiler changes it to the right hand when compiled.
So essentially it is List<BankAccount>
for example:
is it possible to make it without var?
Sure