up previous next contents
Next: Static members Up: Classes and objects Previous: Overloading methods   Contents

Overriding methods

  • You override the signature of a method from a superclass.
  • Overriding methods must have argument lists with the identical type and order as the superclass.
  • When you override a method of a superclass you should honor the intended behavior of the method.


up previous next contents
Next: Static members Up: Classes and objects Previous: Overloading methods   Contents