Why is encapsulation called Data Hiding? What are the main benefits of using encapsulation in Java? Provide
Fantastic news! We've Found the answer you've been seeking!
Question:
- Why is encapsulation called Data Hiding?
- What are the main benefits of using encapsulation in Java?
- Provide an example of how to achieve encapsulation in Java.
- Is it possible to declare abstract methods as private? Justify your answer.
- Is it compulsory for a class, which has been declared as abstract, to have at least one abstract method?
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date: