Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

suppose we have two object;obj1 and obj2
can we assign obj2 to one1;
and if yes; then after assigning suppose we delete obj2
then obj1 will retain obj2 value or not.

Answer Posted / masthan

see this example
parentclass obj1=new parentclass();
childclass obj2=obj1;//assign object to the reference of
childclass.here both obj1 and obj2 refer same memory
location.
obj1=null;//here obj1 losts the memory
console.write(obj2);//it refers same memory location

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is route in web api?

976


What is the difference between custom web user control and a custom web server control?

922


Is asp.net is a programming language?

909


Is asp.net and .net same?

939


Can we make activex dll also ti execute in some process as that of client ? How can we do?

4683


What is the life cycle of web page?

915


What is asp.net with mvc? : Asp.Net MVC

954


How Session use Cookies in State Management?

1019


What is the difference between union and structure?

921


what is silver light when will we use silver light,

1858


What is the difference between a page theme and a global theme?

951


How does session id work?

856


Explain parts of assembly?

913


Why is xap important?

957


Explain the concept of event bubbling in ASP.NET?

1046