base class pointers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manontheedge
    New Member
    • Oct 2006
    • 175

    base class pointers

    can someone clarify what base class pointers are for me. I know what Inheritence is and how abstract base classes work with derived classes, but i'm a little lost on base class pointers. I don't know why i'm not getting it.

    what i'm trying to do is have one class contain base class pointers to each derived class ( of another base class ) ... and at this point i'm just confused and i'm not sure how to go about it.

    I looked around on the internet and didn't really find anything that helped. I can put up with the overly technical explanations, but i didn't even find any of those. If anyone can either give me a link to a tutorial or just explain it here i would greatly appreciate it.
  • gurutheexpert
    New Member
    • Nov 2006
    • 8

    #2
    Hi,
    can you clarify your doubt?
    "what i'm trying to do is have one class contain base class pointers to each
    derived class ( of another base class ) ... "

    Can you explain with example what yoou wana do? Only then i can help you.
    What do you mean by "( of another base class )"?

    Let me make it clear that a Base Class pointer is a pointer that contains the address of object of that base class or address of object of any derived class from that base class.

    can you give example of what are you trying to do??

    Comment

    Working...