Expand|Select|Wrap|Line Numbers
- #include<iostream>
- #include<vector>
- using namespace std;
- class option
- {
- };
- class inher : private vector<option *>
- {
- public :
- void push_back(option * a)
- {
- vector<option *>::push_back(a);
- }
- };
- int main(void)
- {
- return 0;
- }
My , questions are:
1)Can any body explain the meaning of the statement "class inher : private vector<option *>"
2)Which function gets called in the statement , or can you explain the meaning of the statement given below.
" vector< option * > :: push_back(a); "