Question: c++ Heres a small programming activity to help reinforce the concepts we're studying this week and to practice your programming skills! Design an ABSTRACT DATA
c++
Heres a small programming activity to help reinforce the concepts we're studying this week and to practice your programming skills!
Design an ABSTRACT DATA TYPE (ADT). Your ADT must include at least five (5) behaviors (methods or "member functions" in C++ parlance) more if you believe you need them. to create a robust example.
- "Constructors" and "Destructors" do not count toward the 5 method total.
- You MAY NOT choose a STACK (the textbook example) as your ADT.
THE CHALLENGE
Implement your ADT in a programming language of your choice that provides an ADT construct
- For example, in C++ the ADT construct is the class.
Write a small program that creates an instance of your data type and uses each method at least once to demonstrate the correctness of your ADT implementation.Your program must compile and run!
- HINT: Correct functionality of your ADT can be verified via outputs that illustrate state (member variable) changes that one can reasonably expect based on the ADT you've implemented.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
