Pan Niko wrote:I would like to ask if is possible to use an object that created in main method to the constructor of a class.
If your question is: 'can you use an object created in a
main() method IN the constructor of
the same class', the answer is: no.
Or if there is way to do that, to share the same object main method and constructor.
Again, if I understand you right: no.
Perhaps it would be better to explain
what you want to do, rather than speculating about how you're going to do it.
Winston