derived quesiton

This is a discussion on derived quesiton within the C++ Programming forums, part of the General Programming Boards category; I did something similar in a program i had before Code: Recording::Recording(Recording& r) : Holding(h) but this time around says ...

  1. #1
    Registered User verbity's Avatar
    Join Date
    Nov 2006
    Posts
    101

    derived quesiton

    I did something similar in a program i had before

    Code:
    Recording::Recording(Recording& r) : Holding(h)

    but this time around says that ( h ) is an undeclared identifier....

    holding(h) is actually the base class Holding(Holding& h)

    I'm not really understanding the concept I believe....any thoughts

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,310
    Perhaps you meant to write:
    Code:
    Recording::Recording(Recording& r) : Holding(r)
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User verbity's Avatar
    Join Date
    Nov 2006
    Posts
    101
    God I'm stupid!!!! Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 06-03-2009, 03:00 PM
  2. Deleting derived classes
    By *DEAD* in forum C++ Programming
    Replies: 6
    Last Post: 09-30-2008, 12:37 PM
  3. deriving classes
    By l2u in forum C++ Programming
    Replies: 12
    Last Post: 01-15-2007, 04:01 PM
  4. Help accessing classes and derived classes
    By hobbes67 in forum C++ Programming
    Replies: 8
    Last Post: 07-14-2005, 02:46 PM
  5. Inheiritance and derived classes
    By pecymanski in forum C++ Programming
    Replies: 2
    Last Post: 12-09-2001, 02:50 PM

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