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...

Is there any way to access private memebers of an object
from another object?

Answer Posted / mohit jethva

You need to create a property with private field and make
property as public so you can access private field using
public property in other object.

eg.

private int _ID;

public int ID
{
get{return value;}
set{_ID = value;}
}

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cache memory in c#?

917


How many types of constructor are there in c#?

909


What is the function of .IsDescendent()?

1025


Why are strings immutable in c#?

900


Explain what is the smallest unit of execution in .net?

943


Explain about ODP.net

1242


What is linq c#?

889


Why linq is having select clause at the end?

922


What is the use of dll file in c#?

903


Define acid rule of thumb for transactions in c#.

897


What's the difference between class and object?

993


What is lazy loading and eager loading in c#?

918


What is overloading with example?

924


Can a sealed class be used as a base class?

968


Difference between StackPanel and RelativePanel ?

1027