overwrite Summary The overwrite modifier is used for method hiding/shadowing (early binding). Syntax overwrite member Parameters member The member to attempt to overwrite. Description The overwrite keyword specifies a new implementation for a method inherited from a base class via early binding. It is also used for explicitly specifying the implementation for interface methods. The overwrite keyword is used in contrast to override and final which specify late binding. Examples Method Hiding via Early Binding 123456789101112131415161718192021222324external $; // jQuery class Animal{ protected var $element = $('<div class="animal-icon"></div>'); public void render() { $("#content").append($element); }} class Dog : Animal{ private string name; public Dog(string name) { this.name = name; } public overwrite void render() { $element.attr("title", name); $("#content").append($element); }} See Also override final class Share HTML | BBCode | Direct Link