Can I have a private constructor in an abstract class?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
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
评论(499)
Helpful(122)
Helpful
Helpful(2)

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.