PPT Slide
class List { Link * firstElement; class Link { void addBefore (int val, List * theList) { ... if (backwardLink == 0) theList->firstElement = newLink; ... } };public: void push_front(int val) { ... // pass self as argument firstElement->addBefore (val, this); } ... // other methods omitted};