export class Shape { constructor (id, x, y) { this.id = id this.move(x, y) } move (x, y) { this.x = x this.y = y } } export class Rectangle extends Shape { constructor (id, x, y, width, height) { super(id, x, y) this.width = width this.height = height } } export class Circle extends Shape { constructor (id, x, y, radius) { super(id, x, y) this.radius = radius } }