@abstract Back

This tag is the same with @virtual

It is used to specify members that must be implemented (or overridden) for base classes.

/**
 * Base class
 * @constructor
 */
class Base {
    /**
     * fn method of the base class
     * @abstract
     * @returns {boolean}
     */
    fn() { return true; }
}

/**
 * inherited class
 * @constructor
 */
class Inherit extends Base {
    /**
     * fn method of the inherited class
     * @returns {boolean}
     */
    fn() { return false; }
}
Empty Comments
Sign in GitHub

As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.

Notice: This plugin has used Cookie to store your token with an expiration.