This is in response to this task: https://codegym.cc/tasks/com.codegym.task.task04.task0407
I'm coming from a different language so trying to make sure I thoroughly understand this, this is the only thing that's given me any pause at all so far.
If I instantiate 2 objects, from the same class, they always reference and modify the same one by default?
So, I could have something like:
Address address1 = new Address();
address1.street = "1600 Pennsylvania Ave NW";
Address address2 = new Address();
address2.street = "1313 Disneyland Dr";
And address2 will override the street property in the Address class set by address1? Just trying to make sure I'm understanding this correctly, this seems completely illogical.