Hi lucy,
A reference is like a remote control.
The buttons are your method calls on your T.V set(Your Object) which gladly responds to the button pressed!
Using this analogy,Your Object handle(remote) has only 11 buttons(corresponding to the 11 methods of Object).Using this handle,
you can therefore call only the 11 methods on every other object.
(AClass).
Here you're calling a method (or rather trying to press a button that does'nt exist in your remote.)
Object aClass = new AClass();
aClass.aMethod();
Hence the compile time error!
If your base class "is a" super class ,you can access full functionality of the super class with base reference (
Polymorphism).
How ever you cannot access the same for methods that are not defined in the base class with the base handle.
Hope I have'nt confused you!