what is meant by Encapsulation?Explain with an example?

Answer Posted / rekha

ENCAPSULATION MEANS WRAPPING DATA MEMBERS & MEMBER FUNCTION
IN A SINGLE UNIT.EXA:-CLASS

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is native class in java?

492


What's the difference between code-based security and role-based security? Which one is better? : java security

495


What is java web application?

460


What is web xml java?

504


What are the advantages of java sockets?

656






How do I install java on windows?

454


How do I enable javascript?

487


What are the new features about Java se 8 ?

513


Is jar an executable?

465


What is dao in java?

503


Explain different way of using thread?

578


What about 'hostile applets'? : java security

477


What is javax annotation generated?

468


Topic- looping,function overloading,nesting ,polymorphism. Aim - to write a function with a name buzz-buds,that will check whether the given numbers are buddies or not on the basis of no. of parameters passed during function calling.

1595


What is the use of servlet in java?

497