Most of the time, naming for debugs is implemented on the class level. By having an option to set the name at the superclass level (Component class). This could be made much more straightforward, and scalable
Ex:
private String name;
public void setName(String name){
this.name = name;
}
public void debug(){
// Whatever Debug code is there
Debugger.debug(name, debug);
}
Names will not be handled in the constructor, as they are optional
Most of the time, naming for debugs is implemented on the class level. By having an option to set the name at the superclass level (Component class). This could be made much more straightforward, and scalable
Ex:
Names will not be handled in the constructor, as they are optional