Dear Mike,
For as far as I can see, based on your code, I think the MoveabelObject class will compile. What you probably did is compile it and then 'run' it. When you would try to run this object you will indeed get a message much like: 'Exception in
thread "main" java.lang.NoSuchMethodError: main'. This is because when you 'run' a
java class, it will look for the 'main' method, which will then be executed. Your file does not contain a main method, hence the error.
What
you should do is create another object, containing a 'main(
String args[])' method. This method could instantiate your object and do all kinda other stuff that's required to actually show your object and let the user control it.
Greetings,
Tim
Ps. The code you posted is far from finished, atleast if you had in mind that the MovableObject is the only required file. It still contains an abstract method (draw) which you must implement, else nothing will happen.