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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started