Quiz 9

Please write your name and lab section letter at the top of the page.

  1. Write an interface for the Queue or Stack API (your choice).
  2. An abstract class contains one or more abstract methods. Why are abstract classes useful?
  3. How is an interface different from an abstract class?
  4. In what situation is an abstract class almost the same thing as an interface?