3
answers
1
watching
187
views

  1. Why is encapsulation called Data Hiding?
  2. What are the main benefits of using encapsulation in Java?
  3. Provide an example of how to achieve encapsulation in Java.
  4. Is it possible to declare abstract methods as private?
    a. Justify your answer.
  5. Is it compulsory for a class, which has been declared as abstract, to have at least one abstract method?

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Already have an account? Log in
Avatar image
Read by 1 person
Already have an account? Log in
Start filling in the gaps now
Log in