题解 | #Getter#

Getter

https://www.nowcoder.com/practice/e7f3a2f429d945e49f5b48ef1065beda

constructor(heigth, width) {
                    this.heigth = heigth
                    this.width = width
                }
                get area() {
                    return this.heigth * this.width
                }
全部评论

相关推荐

_hengheng:美赛啥时候有三等奖了,蓝桥杯优秀奖最好也别写,知道的面试官看了容易出事,能有菊厂实习也不算菜了
点赞 评论 收藏
转发
点赞 收藏 评论
分享
牛客网
牛客企业服务