+ 12

Can we use constructor in interface ?

29th Jan 2019, 1:34 AM
Chetan
2 odpowiedzi
+ 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......
29th Jan 2019, 7:32 AM
Kshitija Raut
Kshitija Raut - avatar