overriding adj : having superior power and influence; "the predominant mood among policy-makers is optimism" [syn: paramount, predominant, predominate, preponderant, preponderating]
- present participle of override
Method overriding, in object oriented programming, is a language feature that allows a subclass to provide a specific implementation of a method that is already provided by one of its superclasses. The implementation in the subclass overrides (replaces) the implementation in the superclass.
A subclass can give its own definition of methods which also happen to have the same signature as the method in its superclass. This means that the subclass's method has the same name and parameter list as the superclass's overridden method. Constraints on the similarity of return type vary from language to language, as some languages support covariance on return types.
Method overriding is an important feature that facilitates polymorphism in the design of object-oriented programs.
Some languages allow the programmer to prevent a method from being overridden, or disallow method overriding in certain core classes. This may or may not involve an inability to subclass from a given class.
In many cases, abstract classes are designed — i.e. classes that exist only in order to have specialized subclasses derived from them. Such abstract classes have methods that do not perform any useful operations and are meant to be overridden by specific implementations in the subclasses. Thus, the abstract superclass defines a common interface which all the subclasses inherit.
overriding in German: Überschreiben (Objektorientierte Programmierung)
overriding in Japanese: オーバーライド
all-absorbing, capital, cardinal, chief, compelling, controlling, dominant, dominating, foremost, highest, leading, main, master, overruling, overwhelming, paramount, pivotal, predominant, predominating, preeminent, premier, preponderant, prevailing, primary, prime, principal, ranking, ruling, supreme, topmost, uppermost