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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly