best answer > Can we declare constructor as abstract?- QuesHub | Better Than Quora
  • Can we declare constructor as abstract?

    函数 抽象 静态

    Questioner:Isabella Diaz 2023-06-09 06:18:37
The most authoritative answer in 2024
  • Ava Patel——Studied at the University of Johannesburg, Lives in Johannesburg, South Africa.

    Why can't constructors be final, static or abstract in Java? ... When you set a method as 'static', it means: --Method belong to class, not a particular object-- but constructor implicitly called to initialize an object, so there is no purpose in having a static constructor.Aug 16, 2014read more >>
    +119962023-06-15 06:18:37

About “函数、抽象、静态”,people ask:

READ MORE:

QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.

分享到

取消