Change visibility of private class memebers

Private class can't be extended from outside so protected visibility of its members doesn't make sense.