call to super() must be the first statement in constructor body

后端 未结 2 1082
不思量自难忘°
不思量自难忘° 2021-01-12 11:36

I\'m writing the constructor of a LoginRequest class which extends a class called JsobObjectRequest (from the Volley framework in Android, but that\'s completely irrelevant

2条回答
  •  醉梦人生
    2021-01-12 12:04

    This statement is true.super() must always be the first statement executed inside a subclass constructor. . for details see Java the complete reference by Herbert Schildt...

提交回复
热议问题