whst is encapsulation?when u encpsulate actually while
devoloping code?
Answer Posted / jag bhushan
Encapsulation means wrapping of data and the accessing
methods in one unit and hiding the data from outside world.
the data can be accessed only by using getter/setter method
so that no one can set a wrong value for a vriable. like
weight can not be less than zero. so if anyone want to set
the weight, it have to set only be using getter/setter.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we write multiple catch blocks under single try block?
What is anagram word?
How do you remove an object from an arraylist in java?
What is the difference between final, finally and finalize() in java?
What is a ?
How do listeners work?
What is instance example?
List two java ide’s?
Can a method inside a interface be declared as final?
What is files manifesting?
What is a boolean structure?
Write a program to find maximum and minimum number in array?
How do you use substring in java?
How do you include a string in java?
How can we make copy of a java object?