Bean Internals  «Prev 

Javabeans Accessor Methods - Exercise

Objective: Write the definitions of a pair of accessor methods for a Bean property of type float named score. In JavaBeans, accessor methods consist of a getter and a setter. These methods provide controlled access to the properties of a bean.


What would you need to do to make the score property read-only?
Type your answer below and click the Submit button when you are finished.