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

Explain in detail about encapsulation with an example?

Answer Posted / sanjay singh chauhan

it is way to combine field and mathod in a single entity
like a capsule ;
class A
{
int i;
void m(int i)
{
//body of this mathod ;
}
}
like this way;

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about collection interface in java?

995


Can java program run without jre?

1015


What is meant by oops concept in java?

1002


List types of storage classes in java?

1158


What do you understand by the term polymorphism?

1083


What are extraneous variables examples?

1106


What is stringreader?

984


What does the “static” keyword mean? Can you override private or static method in java?

1100


If we don’t want some of the fields not to serialize how to do that?

1016


What’s the difference between constructors and other methods?

1003


What is the use of 'super' keyword inside a constructor?

977


What is a parameter in java?

997


Is upper case in java?

967


Why put method is idempotent?

923


Explain what do you mean by functional overloading in java?

1025