export class Triangle { constructor() { this.area = 0; } calcArea(base, height) { return base * height / 2; } }