Why are constructors allowed in an abstract classes if it cannot be instantiated? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Why are constructors allowed in an abstract classes if it cannot be instantiated?

When you create an abstract class, you are are allowed to create a constructor, but since abstract class is not the complete implementation it makes sense that it cannot be instantiated then how come it is possible to create a constructor?

14th Jul 2019, 12:25 PM
Rohan Rao
Rohan Rao - avatar
0 Resposta