best answer > Can you make a constructor final in Java 2024?- QuesHub | Better Than Quora
  • Can you make a constructor final in Java?

    函数 在线 测试

    Questioner:Lucas Turner 2023-05-05 12:30:36
The most authoritative answer in 2024
  • Emily Powell——Studied at University of California, Los Angeles (UCLA), Lives in Los Angeles, CA

    So making a constructor final is not required, so it is not used with constructor. When you set a method as final, it means : "You don't want any class override it", but constructor by JLS definition can't overridden,so it is clean. We can't make constructor to be final because constructor is never inherited.read more >>
    +119962023-05-15 12:30:36

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.

分享到

取消