data transfer between classes
I want to list 'uname' value in method X, to method Y
i am new to oop
![](https://utfs.io/f/da7cad81-edb5-495d-a5eb-a73642b9f415-4pl4mu.png)
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?
![](https://utfs.io/f/b0908a77-608d-4d93-937d-6452dd519ba3-4pl4mu.png)
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
![](https://utfs.io/f/31833678-24d0-4b62-a3d0-f1252dbe579e-4pl4mu.png)
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
![](https://utfs.io/f/d13d0b30-5a7b-4b6b-aa22-81b03dc1273f-4pl4mu.png)
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•2y ago
Message Not Public
Sign In & Join Server To View