Originally posted by Michael Sullivan:
class SuperClass{
public float getNumericValue(){
return 9.5f;
}
}
public class SubClass extends SuperClass{
public void getNumericValue(){
}
}
It says that I cannot override the method getNumericValue, why is that? Thanks!
Originally posted by Michael Sullivan:
Obviously I need a nice condense explanation of overriding methods... becuase this doesn't seem to make sense to me.
- Do not try and bend the spoon. That's impossible. Instead, only try to realize the truth. - What truth? - That there is no spoon!!!
- Do not try and bend the spoon. That's impossible. Instead, only try to realize the truth. - What truth? - That there is no spoon!!!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |