Answer the question
In order to leave comments, you need to log in
How to pass an object from one class to another?
1. How are objects passed as parameters to methods?
2. The second question I do not know how to formulate. For example there is 1 class in which there is a field "position". There is a second class, which raises the position to the desired one. But these 2 classes are not related. Also a question about the use of objects.
Show simple examples so that you can understand.
Answer the question
In order to leave comments, you need to log in
1. as well as standard types
2. but this is impossible to understand without half a liter in principle, in this case it is probably more difficult to understand the question than to explain
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question