Inheritance and polymorphism, C/C++ Programming

The zipped folder int_collection.zip (downloaded from Blackboard) contains an abstract class AbstractIntCollection and two interfaces: IntList and IntStack. The abstract class contains support for the development of array based data structures. The two interfaces de ne the functionality of an integer list and an integer stack. Your task is to implement the two interfaces by inheriting from the abstract class, that is, create two classes with the following signatures:

public class ArrayIntList extends AbstractIntCollection implements IntList

public class ArrayIntStack extends AbstractIntCollection implements IntStack

Also write a test program CollectionMain, showing the functionality of the classes. Note: Your classes are supposed to use the abstract class and the interfaces exactly as they are given. You are not allowed to change ANYTHING in those classes (except from the package declaration).

Posted Date: 3/14/2013 5:52:26 AM | Location : United States







Related Discussions:- Inheritance and polymorphism, Assignment Help, Ask Question on Inheritance and polymorphism, Get Answer, Expert's Help, Inheritance and polymorphism Discussions

Write discussion on Inheritance and polymorphism
Your posts are moderated
Related Questions
how to program?

Hi is there any chance to get assignment for fresher tutor

Abstract Classes Abstract classes are the classes, which are written just to act as base classes. Consider the following classes.                 class base

Description: Create a program that allows the user to track the hours an employee worked in a week. How much the employee was paid and any extra hours worked (overtime pay).


hwat is the area fsdjlakl;aeklfjtealrtl;gka

C Program to copy the contents of a file: void main()    {   ifstream fin("input.txt");   ofstream fout("output.txt");   char ch;   while (fin)       {

how we write decision tables, flowcharts,pseudocode,and algorithm in result management system

i need amibroker afl to dll plugin

What is a hash function? Hash function: This is the method from the set 'K' of keys into the set 'L' of memory addresses.   H: K → L These are used to verify the address