home › Forums › # Technical Support › Create engine in Netbeans Java › Reply To: Create engine in Netbeans Java
January 30, 2015 at 09:20
#1649
Keymaster
Hi Roxanne,
the problem you might be having is in the constructor. Please, make sure the constructor starts as follows.
public Roxanne(){
this.engine = new Engine();
engine.setName(“Traffic Light Controller”);
Cheers.