I build a class with the constructor:
public Door(String name){
this.name = name;
}
Is there a way where I can create a default constructor where the name becomes whatever the user assigns this object. For example:
{
Door blackDoor = new Door();
}
Would make the
blackDoor.name = blackDoor?