Implement a stack ADT using array
Recall the three aspect of an ADT as show in the diagram. You aregoing to play a role as an ADT programmer
to implement a stack ADT using array.
The interface has been provided as Stack.java. Given thisinterface, the application programmer has developed
a simple application TestStack.java.
Your task for today is to implement the operations/methods in theADT, which are hidden to application
programmers. A backbone of the ADT is provided in BasicStack.javaand necessary code is added to compile it
successfully. You will need to replace your implementation in eachof the methods.
Application
ADT
Interface
ADT
Implementation
⁃ Uses ADT
operations
⁃ Only sees
interface
⁃ Provides
functionality
⁃ Protects data
by hiding it
⁃
PayPal Gateway not configured
PayPal Gateway not configured