why do we throw a reference to the object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sibtey
    New Member
    • Aug 2006
    • 4

    why do we throw a reference to the object

    in the exception handeling if we pasing the object to the catch block it always passed by reference why?????
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Because the reference guarantees that the object exists but a pointer doesn't.

    Comment

    Working...