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
Post a Comment