Explain in detail about encapsulation with an example?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is string a class in java?

483


What are the loops in java?

503


Can we execute a program without main?

513


Why is a singleton bad?

535


What are the advantages of user defined functions?

528






What is the generic function?

501


What is a default method?

498


What are the access modifiers available in java?

539


Can we synchronize static methods in java?

572


Explain about assignment statement?

567


I want to store more than 10 objects in a remote server? Which methodology will follow?

2612


How will you compute size of a structure?

546


What is connection class in java?

489


What is array in java?

505


What is difference between class and object in java?

507