问题描述
['5/5','buy milk']
/**
* @class
* @name Shape
*/
export default class Shape {
getType() {
return 'shape';
}
getName() {
return 'Shape';
}
}
有了这样的文档,我在Shape类和Circle类中都拥有所有方法。如何解决问题?
UPD:添加
/** * @class * @name Circle * @extends Shape */ export default class Circle { constructor() { super(); } /** * @name Circle#getName * @override Shape */ getName() { return 'Circle'; } }
。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)