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
I started preparing an alternative cryptocurrency and I am way over my head. I would like help in making modifications to the open source files and then help with deployment. I wil

Buddy systems : A method of handling the storage management problem is kept individual free lists for blocks of dissimilar sizes. Every list having free blocks of only one particul

what are objects or simply define objects

WHAT IS CGI?

Public, Private and Protected members: Class members can either be declared in public','protected' or in the 'private' sections of the class. But as one of the features of OOP i

What are all of the implicit member functions of the class? Or what are all of the functions that compiler implements for us if we don't describe one? A: 1.      copy ctor

please provide me the assignment help. What is the difference between a copy constructor and an overloaded assignment operator?

array of class objects and single inheritance

Step 1 Define the start of the program    It should be noted that within C all commands should end in a semi-colon. For most of your programs the definition of a program header as

#question.Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two po