Shape Hierarchy with Static Counter
Build a Shape class with a static count property that tracks how many shapes have been instantiated. Then build a Circle subclass that calls super() in its constructor and adds a radius. Add an area getter to Circle that returns Math.PI * radius * radius.
Premium
JavaScript
Console