best answer > Can an abstract class have a main method 2024?- QuesHub | Better Than Quora
  • Can an abstract class have a main method 2024?

    方法 对象 如果你

    Questioner:Parker Lewis 2023-06-09 09:11:10
The most authoritative answer in 2024
  • Benjamin Rodriguez——Works at the International Seabed Authority, Lives in Kingston, Jamaica.

    So there's no problem. Abstract just means you can't instantiate the class directly. You can have constructors if you want - they might be needed for subclasses to initiate the object state. You can have static methods, including main() and they don't need an object so calling them is fine.Feb 23, 2014read more >>
    +119962023-06-15 09:11:10

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.

分享到

取消