Can I have a private constructor in an abstract class?

Lucas Martin | 2023-06-09 06:42:38 | page views:1230
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Olivia Garcia

Studied at Harvard University, Lives in Cambridge, MA
abstract class can have a private constructor. But that class cannot be extended by another class. Instead of adding a static inner class inside the abstract class and extends that abstract class.
2023-06-16 06:42:38

Ethan Walker

QuesHub.com delivers expert answers and knowledge to you.
abstract class can have a private constructor. But that class cannot be extended by another class. Instead of adding a static inner class inside the abstract class and extends that abstract class.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4