Question
// Abstract class // The Astract class should not be modified. protected: #include stdafx.h #include #include using namespace std; using namespace std; class List {
// Abstract class
// The Astract class should not be modified.
protected: #include "stdafx.h"
#include
#include
using namespace std;
using namespace std;
class List {
public:
virtual void replace(int, int); // the forst int is the location to replace and the second int is the value to be added
virtual void printList();
virtual int getItemAt(int) = 0; // gets the item at a particular location
virtual int getFirst() = 0;
int myList[5];
int size;
};
class myList :public List {
// provide the content of this derived class to implement the abstract class
};
int main() {
// provide the content here to call the functions that perform the various List operations
system("pause");
}
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