best answer > Why do we use constructors in Java 2024?- QuesHub | Better Than Quora
  • Why do we use constructors in Java?

    函数 方法 目的是

    Questioner:Maya Lewis 2023-05-05 14:09:59
The most authoritative answer in 2024
  • Ethan Walker——Works at the International Atomic Energy Agency, Lives in Vienna, Austria.

    The purpose of constructor is to initialize the object of a class while the purpose of a method is to perform a task by executing java code. Constructors cannot be abstract, final, static and synchronised while methods can be. Constructors do not have return types while methods do.read more >>
    +119962023-05-13 14:09:59

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.

分享到

取消