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
What is the purpose of interface?
Can java list contain duplicates?
How do you sort in descending order in java using collections sort?
Why main method is static in java?
How to sort array of 0 and 1 in java?
Define interface in java?
What is an empty class? What functionality does it offer in Java?
Is the empty set a singleton?
What is the use of singleton class?
What is the difference between length and length() method in java?
What is the difference between a static and a non-static inner class in java programming?
What language is an assembler written in?
Why is method overloading not possible by changing the return type in java?
What does @param args mean in java?
Why is string class considered immutable?