Why can t we declare a constructor as final?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at the University of Seoul, Lives in Seoul, South Korea.
so there is no need to use final keyword with a constructor . A constructor can't inherited so can't be overridden , so there is no use of making constructor final. We can't make a constructor to be final because the constructor is never inherited.
2023-06-12 06:42:28
评论(499)
Helpful(122)
Helpful
Helpful(2)

Charlotte Young
QuesHub.com delivers expert answers and knowledge to you.
so there is no need to use final keyword with a constructor . A constructor can't inherited so can't be overridden , so there is no use of making constructor final. We can't make a constructor to be final because the constructor is never inherited.