- Code: Select all
public HitWall(SensorPort port )
{
sonar = new UltrasonicSensor( port );
}
it underlines the public hitwall(SensorPort port) in red and the error is "invalid method declaration; return type required"'t;
The problem is that I don't understand what should be in the place of SensorPort port.
greets pieter
