MCPcopy Create free account
hub / github.com/ShivaBhattacharjee/KeyZen / constructor

Method constructor

data/typescript/03_classes.ts:20–22  ·  view source on GitHub ↗
(private w: number, private h: number)

Source from the content-addressed store, hash-verified

18
19class Rectangle extends Shape {
20 constructor(private w: number, private h: number) {
21 super();
22 }
23
24 area(): number {
25 return this.w * this.h;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected