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
Is string a class in java?
What are the loops in java?
Can we execute a program without main?
Why is a singleton bad?
What are the advantages of user defined functions?
What is the generic function?
What is a default method?
What are the access modifiers available in java?
Can we synchronize static methods in java?
Explain about assignment statement?
I want to store more than 10 objects in a remote server? Which methodology will follow?
How will you compute size of a structure?
What is connection class in java?
What is array in java?
What is difference between class and object in java?