Classes and Objects 05 Flashcards
1
Q
What are the benefits of encapsulation?
A
Encapsulation promotes maintenance
Code changes can be made independently
Increases usability
2
Q
What is a wrapper class?
A
Integer, Long, Byte, Double, Float, Short
subclasses of the abstract class Number. The object of the wrapper class contains or wraps its respective primitive data type.