Skip to content
nene edited this page Mar 21, 2012 · 4 revisions

Synopsis:

@abstract

Documents class member as abstract. The implementation for an abstract member must be provided in subclasses.

Example:

/**
 * Base class for triangles, rectangles and other shapes.
 */
Ext.define("Shape", {
    /**
     * Calculates the area of the shape.
     * @return {Number}
     * @abstract
     */
    area: function() {
        alert("area() not implemented");
    }
});
Clone this wiki locally