Can someone explain what the colon does here:
Thanks!Code:template<class T> class Vec : public vector<t> { ...
Can someone explain what the colon does here:
Thanks!Code:template<class T> class Vec : public vector<t> { ...
Last edited by Gamma; 04-24-2002 at 09:27 PM.
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.
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.