标题: [Oracle interview]What is Overriding? [打印本页] 作者: 李刚 时间: 2013-8-16 14:51 标题: [Oracle interview]What is Overriding? 作者: 曹凯 时间: 2013-8-16 15:01
When a class defines a method using the same name, return type, and arguments as a method in its superclass, the method in the class overrides the method in the superclass.When the method is invoked for an object of the class, it is the new definition of the method that is called, and not the method definition from superclass. Methods may be overridden to be more public, not more private.