SyntaxFix
Write A Post
Hire A Developer
Questions
private modifier will make your class inaccessible from outside, so there wouldn't be any advantage of this and I think that is why it is illegal and only public, abstract & final are permitted.
private
public
abstract
final
Note : Even you can not make it protected.
protected