// Class StackInheritance definition // Derived from class List package com.deitel.jhtp2.ch17; public class StackInheritance extends List { public StackInheritance() { super( "stack" ); } public synchronized void push( Object o ) { insertAtFront( o ); } public synchronized Object pop() throws EmptyListException { return removeFromFront(); } public boolean isEmpty() { return super.isEmpty(); } public void print() { super.print(); } }