What does this line of of code mean?

This is a discussion on What does this line of of code mean? within the C++ Programming forums, part of the General Programming Boards category; Can someone explain what the colon does here: Code: template<class T> class Vec : public vector<t> { ... Thanks!...

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    30

    Angry What does this line of of code mean?

    Can someone explain what the colon does here:
    Code:
    template<class T> class Vec : public vector<t> { ...
    Thanks!
    Last edited by Gamma; 04-24-2002 at 10:27 PM.

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C code line, pointer declaration
    By Dedalus in forum C Programming
    Replies: 2
    Last Post: 06-10-2009, 05:34 AM
  2. help again with scrolling without wrapping
    By Dukefrukem in forum C Programming
    Replies: 8
    Last Post: 09-21-2007, 01:48 PM
  3. Can't figure out a line of code...
    By bamera in forum C++ Programming
    Replies: 1
    Last Post: 10-15-2005, 08:11 PM
  4. SSCANF help
    By mattz in forum C Programming
    Replies: 7
    Last Post: 12-10-2001, 04:53 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21