The following class corresponds to the array implementation of a _____.public class MyClass{ public MyClass(); public boolean isEmpty() {} public void display() {} public void add(int) {} public void add(int location, int item) {} public void remove(int item) {} private int list[100]; private int length;}; (Points : 3) list bag stack queue

Respuesta :

Answer:

The answer is "List".

Explanation:

In the data structure, the list uses linear programming, in this mainly three thing is use that is "value, left the location, and right location". In the given code the class "MyClass" is declared, inside this class a constructor, methods( add, display, remove), and a list array is defined that is used in list programming, and wrong choices were explained as follows:

  • The bag is known as a collection of objects.  
  • stack uses the LIFO process and Queue uses the FIFO method, that's why both are incorrect.

ACCESS MORE
ACCESS MORE
ACCESS MORE
ACCESS MORE