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?

Answers were Sorted based on User's Feedback



Explain in detail about encapsulation with an example?..

Answer / ravikiran(aptech mumbai)

encapsulation is the one which will bind members and methods
into a single entity

Is This Answer Correct ?    10 Yes 2 No

Explain in detail about encapsulation with an example?..

Answer / 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

Explain in detail about encapsulation with an example?..

Answer / aditya mohata

encapsulation is hiding detalis which u dont wanna show it
publicly or u dont want it to b modified.

Is This Answer Correct ?    10 Yes 5 No

Explain in detail about encapsulation with an example?..

Answer / sivaprasad addepalli

Encapsulation is a mechanism which binds the attributes or
variables and methods together as a single entity known as
class.
ex:
class sample
{
public:
int a;
public:
void test()
{
}
}
Encapsulation is a concept of datahiding,

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is native method in java?

0 Answers  


explain System.out.println()

12 Answers   CTS,


1).Is Object class abstract or not? 2).Is main method(public static void main(String args[])low priority thread or high priority thread?

3 Answers   TCS,


Why char array is preferred over string for storing password?

0 Answers  


can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

0 Answers  


What are methods in java?

0 Answers  


What advantage does an entity bean have over a sessin bean?

3 Answers   Adobe,


How do u provide security in java

3 Answers  


What is the difference between @before and @beforeclass annotation?

0 Answers  


What is the main purpose of java?

0 Answers  


What is method overloading in JAVA? Why is it not present in C ?

0 Answers   Akamai Technologies,


Explain the difference between hashmap and hashtable in java?

0 Answers  


Categories