Change the visibility of elements of class.

Change the visibility of elements of class from private to protected.