Replace Superclass with Delegate

refactorgram

class List {...}
class Stack extends List {...}

image/svg+xml

class Stack {
  constructor() {
    this._storage = new List();
  }
}
class List {...}

aliases Replace Inheritance with Delegation