Instantiating a derived class from a Base class

This is a discussion on Instantiating a derived class from a Base class within the C++ Programming forums, part of the General Programming Boards category; Hi I'm new to C++ so please be patient if I ask stupid questions - its not intentionally. Is it ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    6

    Instantiating a derived class from a Base class

    Hi

    I'm new to C++ so please be patient if I ask stupid questions - its not intentionally.

    Is it possible to instantiate a derived class from a base class ? If yes can someone give me an example.

    Thank-you
    Kwoky

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    6
    Thanks for the link and FAQ - I'll be reading it on the train tonight.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. base class pointer pointing at derived class
    By mynickmynick in forum C++ Programming
    Replies: 11
    Last Post: 12-01-2008, 11:26 AM
  2. call base class function or derived class function
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 03-18-2008, 05:23 AM
  3. Inheritance: assign base class to derived class
    By MWAAAHAAA in forum C++ Programming
    Replies: 15
    Last Post: 01-22-2007, 03:31 PM
  4. Calling constructor of the base class of a derived class..
    By CaptainPenguin in forum C++ Programming
    Replies: 5
    Last Post: 02-19-2003, 12:47 PM
  5. structure vs class
    By sana in forum C++ Programming
    Replies: 13
    Last Post: 12-02-2002, 06:18 AM

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