What is meant by Encapsulation? Can you write a class to
explain encapsulation?
Answer Posted / ajay kumar sharma
Wraping of objects under a class is known as Encapsulation.
class
{
public static void main(String a[])
{
int a,b,
....
....
}
}
Is This Answer Correct ? | 2 Yes | 9 No |
Post New Answer View All Answers
What is loop in java?
Why is singleton instance static?
Is void a return type?
What is the basic concepts of OOPS?
What do you mean by constant time complexity?
What is the difference between comparison done by equals method and == operator?
What is object cloning in Java?
Why are global variables used?
Why vector class is used?
What are the differences between include directive and include action?
When the constructor of a class is invoked?
Why does it take so much time to access an applet having swing components the first time?
What is a class in java?
Why bytecode is called bytecode?
What is the purpose of a parameter?