data transfer between classes
I want to list 'uname' value in method X, to method Y
i am new to oop
14 Replies
are you assuming to set username at a user in the list?
yes
bukan gitu gan caranya
are you familiar with arrays?
u can do users[0].Username = any
like this?
set the object first
then print later
dont set at the same time
i got you
but i want to add it to the list and act on various commands with it not array
wait i dont quite understand
what were u trying to accomplish here?
add a new user to a list?
edit an existing user in a list?
I want to move the data in X method to Y method
u are looking for parameters?
in the Y(string _username) <-- u can do this
passing 'arguements' in the parameter
then how can i deal with it
there must be some value here, right?
u can put string.Empty
and ur title is pretty misleading
this is not data transfer between classes
most likely data transfer between methods
you're right it's my fault
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View