Explain data abstraction and data encapsulation with example. Give differences between these two.

Questions by rasaya

Showing Answers 1 - 3 of 3 Answers

abstraction means giving usefull information , encapsulation means hiding unecessary information.
encapsulation
class person
{
private String name;
public void main()
{
System.out.println(""+name);
}
}

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions