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 buildHouse()
{
House h1 = new House();
return h1;
}
That is currently the code for the function.
My problem is that while i am returning house h1 to the main function, my next functions in my main function are supposed to interact with this house, and i am getting errors as if the code cannot find house h1. It doesn't seem complicated and I'm almost positive it isn't but I would really appreciate any help.