Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

// 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

Discuss reasons for allocating costs to departments.

Answered: 1 week ago