class Dot { x = 0; y = 0; function constructor(x1,y1) { this.x=x1; this.y=y1; } } class Rectangle extends Dot { height = 0; width = 0; function constructor (x,y, h,b) { this.height=h; this.width=b; base.constructor(x,y); } function Output() { ::print(x+","+y+","+height+","+width+" \n"); } }