Why constructor Cannot be declared as abstract in Java?

Harper Lee | 2023-06-09 06:42:33 | page views:1176
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Isabella Gonzales

Studied at the University of Manchester, Lives in Manchester, UK.
When you set a method as final it means: "You don't want any class override it." But the constructor (according to the Java Language Specification) can't be overridden, so it is clean. ... But the constructor is implicitly called to initialize an object, so there is no purpose in having a static constructor.
2023-06-16 06:42:33

Ethan Reed

QuesHub.com delivers expert answers and knowledge to you.
When you set a method as final it means: "You don't want any class override it." But the constructor (according to the Java Language Specification) can't be overridden, so it is clean. ... But the constructor is implicitly called to initialize an object, so there is no purpose in having a static constructor.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4