File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,10 @@ class Square extends Shape {
12031203
setLength(length) {
12041204
this.length = length;
12051205
}
1206+
1207+
getArea() {
1208+
return this.length * this.length;
1209+
}
12061210
}
12071211

12081212
function renderLargeShapes(shapes) {

0 commit comments

Comments
 (0)