Question: Define an ADT for a list of integers. First, decide what functionality your ADT should provide. Example 1.4 should give you some ideas. Then, specify
Define an ADT for a list of integers. First, decide what functionality your ADT should provide. Example 1.4 should give you some ideas. Then, specify your ADT in Java in the form of an abstract class declaration, showing the functions, their parameters, and their return types.

Example 1.4 An ADT for a list of integers might specify the following operations: Insert a new integer at a particular position in the list. Return true if the list is empty. Reinitialize the list. Return the number of integers currently in the list. Delete the integer at a particular position in the list. From this description, the input and output of each operation should be clear, but the implementation for lists has not been specified.
Step by Step Solution
3.52 Rating (162 Votes )
There are 3 Steps involved in it
Abstract Data Type ADT for a List of Integers An Abstract Data Type ADT is a mathematical model for ... View full answer
Get step-by-step solutions from verified subject matter experts
