Can an abstract class have a static method?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at the International Development Association, Lives in Washington, D.C., USA.
However, for the same reason, you can't declare a static method to be abstract. Normally, the compiler can guarantee that an abstract method will have a real implementation any time that it is called, because you can't create an instance of an abstract class.Jul 1, 2013
2023-06-15 06:42:27
评论(499)
Helpful(122)
Helpful
Helpful(2)

Emma Foster
QuesHub.com delivers expert answers and knowledge to you.
However, for the same reason, you can't declare a static method to be abstract. Normally, the compiler can guarantee that an abstract method will have a real implementation any time that it is called, because you can't create an instance of an abstract class.Jul 1, 2013