Thread: Destroy object
View Single Post
  #4 (permalink)  
Old 12-31-2007, 06:19 AM
CaptainMorgan's Avatar
CaptainMorgan CaptainMorgan is offline
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Quote:
Originally Posted by anjanesh View Post
Is there any way to destroy a variable so that it can be used to assign it to another type ?
Rajiv will correct me if I'm wrong, but I'm pretty sure he answered this question.

Quote:
Variable names in the same scope should be unique. You cannot have two variables with the same name in the same scope.

However, if you want to use the same reference variable to point to a different object, you can do so.
Reply With Quote