Hi all I have a question regarding inheritence.
Before I start: I know that a lot of people do not like the idea of inheriting from vector, but for my education lets just assume I have to do it! Also, I am new to the code game as I'm sure you can tell by the question.
I've looked and looked and I just want to understand the basic use of a class inherited by vector. Such as
class MyClass : public vector<int> {
public:
MyClass(); //as a constructor
...other members
};
So i guess my questions are how can I access the vector functions now inherited by this class? I should not have to make a vector a member variable right? And how to properly implement the vector abilities the class now has when coding the details of the member function's?
Thanks in advance and also apologies in advance if this is unworthy.