Providing Java library, but hiding some classes

后端 未结 6 1430
鱼传尺愫
鱼传尺愫 2020-12-15 08:32

I am developing an application in Java ME that I want to provide as a library. Is there no way to hide classes that I don\'t want everyone to use, but is essential still in

6条回答
  •  天涯浪人
    2020-12-15 09:07

    You need to make the classes that you don't want exposed protected. This will make them non usable from client code. Read more in the official docs

提交回复
热议问题