Virtual Destructors????

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shubhadeep

    Virtual Destructors????

    Dear Sir,
    Can anybody please tell me why cannot we have virtual destructors like
    virtual constructors in C++ ?
    Thanx,
    Regards,
    Shubhadeep
  • Jakob Bieling

    #2
    Re: Virtual Destructors????

    "Shubhadeep " <shubhadeepsark ar@yahoo.com> wrote in message
    news:a20f1d92.0 307151018.1e3e7 3b0@posting.goo gle.com...[color=blue]
    > Dear Sir,
    > Can anybody please tell me why cannot we have virtual destructors like
    > virtual constructors in C++ ?[/color]


    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)


    Comment

    Working...