You can use the constructor of subclasses on java it is a feature of polymorphism. You can't call methods from subclasses in that instance unless that method is overwritten in that subclass.
現在アクセス不可の可能性がある結果が表示されています。
アクセス不可の結果を非表示にする現在アクセス不可の可能性がある結果が表示されています。
アクセス不可の結果を非表示にする