Can someone explain what the colon does here:
Thanks!Code:template<class T> class Vec : public vector<t> { ...
Printable View
Can someone explain what the colon does here:
Thanks!Code:template<class T> class Vec : public vector<t> { ...
i used in inheritance for C++ classes so that
class Vec : public vector
means class 'Vec' Inherits all of class 'vectors' member functions, member variables, ect ect..
do a search on http://www.google.com on C++ class or C++ inheritance or get a book on C++ for a much better and more indepth explaination.