//
b1.buildHouse();
h1.setOccupant(b1);
System.out.println(h1.getOccupant());
the error that comes up is
Type: Posts; User: srwoltering
//
b1.buildHouse();
h1.setOccupant(b1);
System.out.println(h1.getOccupant());
the error that comes up is
I'm sorry i didn't mean a copy of the class house, I meant I wanted to create an object of the house class and then return it to my main class, a bit new to java and I didn't think through my...
Okay so this is probably really simple, but I am trying to make one class called builder create a copy of another class called house, and then return it to my main function.
public House...