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
electricity biil code

Explain about the Expressions in c Language? An expression is the combination of constants, variables and operators arranged as per the syntax of the language. Some of the illu

in a program for what purpose print f and scan f is used

write short notes about void pointers

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

Project Description: Project is related indexing data related some data structure. I need to share all information related project later if i contact any body Skills required

Hi, Can i get a quote for my Programming assignment

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

Type Casting Implicit type conversions, as allowed by the language, can lead to errors creeping in the program if care is not taken. Thus, explicit type conversions may be used