MCPcopy Create free account
hub / github.com/GoogleChrome/samples / constructor

Method constructor

classes-es6/demo.js:93–96  ·  view source on GitHub ↗
(height, width)

Source from the content-addressed store, hash-verified

91
92class Rectangle extends Polygon {
93 constructor(height, width) {
94 super(height, width);
95 this.name = 'Rectangle';
96 }
97 // Here, sayName() is a subclassed method which
98 // overrides their superclass method of the same name.
99 sayName() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected