Thread: OOP proposal about having two instances of the same class on another

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    5) Use a separate base class (possibly virtual) from which class A and B both inherit.
    Last edited by MK27; 12-22-2011 at 03:27 PM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multiple class instances
    By jamort in forum Game Programming
    Replies: 16
    Last Post: 07-30-2010, 09:05 PM
  2. instances of class....
    By jamort in forum C++ Programming
    Replies: 2
    Last Post: 11-09-2009, 12:40 AM
  3. Classes storing instances of own class.
    By HIM in forum C++ Programming
    Replies: 4
    Last Post: 11-09-2006, 09:18 AM
  4. Queues, Nodes and passing instances of a class
    By xshapirox in forum C++ Programming
    Replies: 12
    Last Post: 11-13-2004, 01:06 PM
  5. variables in instances of a class
    By alloc(MEM_NEWBIE) in forum C++ Programming
    Replies: 1
    Last Post: 04-08-2002, 01:35 PM