Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 12
Can we use constructor in interface ?
2 Respostas
+ 20
GenerallyĀ constructorsĀ r for initializing non-static members of particular class with respect to object.......There is no object creation for interfaceĀ as there is only declared methods but not defined methods......... so object creation is not possible for interface.........
That's whyĀ we canĀ not define constructorĀ in theĀ interfaces......