What is the error in my code please -java- | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the error in my code please -java-

I want to manage integer using stack and queue concepts stored in the vector collections https://code.sololearn.com/c81A10a1A7A3/?ref=app

3rd Jan 2021, 11:03 PM
Amal Gil
Amal Gil - avatar
3 Answers
+ 2
Stack implements the Istack interface, but you didn't implement and define its methods within the Stack class. You need to define the pop(), push(), and erease() methods in the Stack class.
4th Jan 2021, 12:33 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
Add this; public void erease(){}; public void pop(){}; public int push(){return 0;}; To the Stack class and run it.
4th Jan 2021, 12:46 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
ChaoticDawg in eclipse it is working without defining the methods of the interface
4th Jan 2021, 12:38 AM
Amal Gil
Amal Gil - avatar