: C++
Create a Stack class implementing the Abstract Base Class Interfaces::Stack (this base class just has a bunch of virtual functions in it). Your Stack class needs to be defined in a unique namespace. Write a program that creates this class and performs simple functions with the class.
I have the abstract base class, I just don't really know how to implement it in the way it's being asked.
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
For each abstract virtual method defined for the base class, you have to provide a concrete implementation of it in your subclass. What each function needs to do should be apparent from the name of the function, it's arguments, and your understanding of the Stack data type. Or they'll give you an English explanation of the contract each function must honor. You'll also have to come up with the private data the class will need to fulfill the contracts for the methods.