Mark As Completed Discussion

Modifiers in Encapsulation

Modifiers are data that determine whether or not a piece of code should be called. In Java, modifiers such as explicit, abstract, final, and private are available. These can be used to specify how methods and classes access their data. Ideally, these modifiers prevent code from being altered or used in ways that the programmer does not approve of.