Answer the question
In order to leave comments, you need to log in
How to create an instance of a class?
The following is not entirely clear to me: than Address adress = new Address(); different from Address adress;
Doesn't seem to make a difference, does it?
Answer the question
In order to leave comments, you need to log in
Adress is considered an empty reference, and with new, a place in memory is allocated for it for further work
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question