Is there is way to get the address of an object which is created?

 Posted by deccansoft on 8/2/2010 | Category: C# Interview questions | Views: 1252

No, there is no way to get the address of an object. We can only have the reference to the object which is created to access the members of the class for a given object.

This is because once an object is created all the variables(values/reference types) are allocated the memory in heap and so it is very difficult to trace the exact address in heap memory.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response