I'm confused as to when we have to type the keyword new when we are referring to an object in java. I'm confused why in my example we didn't have to type new in the instance variables, but had to type new in the constructor. How does that work if they are referring to the same class?
public class Computer {
private Brand brand;
private Manufacture manufacture;
public Computer() {
setBrand(new Brand());
setManufacture(new Manufacture());