Is it possible to derive a child from an array Class?
What I am playing with right now is: Creating an array of Linked Lists
I am building a List class from which I can derive different types of lists (ie. Linear, Circular, Double Linked, etc...
What I would like to do is to extend an array class to make a "arrayOfLists" class. Then I would take the child class and add to it a LinkedList object member.
Is this possible? Am I even thinking of OOP correctly in this instance?
Thank you for your help
int a[];However, you can create awrapper classthat holds an array as its core variable and then write functions for your class that help with array operations. In fact, c++11 proposes something like this: cplusplus.com/reference/array/array