Virtual Destructors????

Discussion in 'C++' started by Shubhadeep, Jul 15, 2003.

  1. Shubhadeep

    Shubhadeep Guest

    Dear Sir,
    Can anybody please tell me why cannot we have virtual destructors like
    virtual constructors in C++ ?
    Thanx,
    Regards,
    Shubhadeep
    Shubhadeep, Jul 15, 2003
    #1
    1. Advertising

  2. "Shubhadeep" <> wrote in message
    news:...
    > Dear Sir,
    > Can anybody please tell me why cannot we have virtual destructors like
    > virtual constructors in C++ ?



    You are confusing things I suppose? In C++ you /can/ have virtual
    destructors, but you /cannot/ have virtual constructors.

    hth
    --
    jb

    (replace y with x if you want to reply by e-mail)
    Jakob Bieling, Jul 15, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave

    Virtual destructors

    Dave, Nov 18, 2003, in forum: C++
    Replies:
    3
    Views:
    361
    lilburne
    Nov 18, 2003
  2. qazmlp
    Replies:
    7
    Views:
    485
    Howard
    Jul 27, 2004
  3. Ruben Campos
    Replies:
    5
    Views:
    4,149
    Ron Natalie
    Apr 7, 2005
  4. heted7
    Replies:
    33
    Views:
    1,022
    Chris Dearlove
    May 12, 2005
  5. Replies:
    3
    Views:
    366
    Nitin Motgi
    Jan 31, 2006
Loading...

Share This Page