Quote:
Originally Posted by shindigo
Can any public method be overridden for an instance of a class in Java?
|
In Java, you can override any non-final method, and anonymous classes (new ClassName() { /* stuff */ }) let you make individual variables with specific versions of methods, instead of having to make a new class every time you want to make a tiny change.
Quote:
Originally Posted by shindigo
Btw, do you have a link to the source of the wpilib?
|
In the sunspotfrcsdk folder (which should be in your user directory), in its lib directory, there are wpilibj.src.zip and wpilibj.project.zip. The src one just has the source files, and the project one is a full netbeans project. The more complicated aspects of command-based programming are in edu.wpi.first.wpilibj.command and edu.wpi.first.wpilibj.buttons.