java - Why Lint give an advice to make my constructor protected for abstract class? -


i'm wondering behind lint's advice of making constructor of abstract class protected?

non-child classes can't call constructor of abstract class (it's not possible). classes can call constructor children of abstract class. setting constructor protected allows child classes see constructor.

edit: more information, see question.

also, joop correct anonymous implementations (i didn't know in java). however, have never seen that.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -