Method overriding deals with inheritence, where the parent and child class each have a function with the same name. Run this example to see what happens:
Actually, the last line in main() illustrates
polymorphism, which is another topic closely related to method overriding. Before you run it,
you should predict what you think the output will be. Then see if it is what you predicted.
Standard Disclaimer: the above code has not been compiled or tested. I created it from memory and should work as is. However, no warranty is given, explicit or implied. Use at your own risk.
HTH
Layne
[ March 26, 2003: Message edited by: Layne Lund ]