+ 2

Can constructors be overwritten?

22nd Oct 2017, 7:03 PM
Sharbel Okzan
Sharbel Okzan - avatar
2 Respostas
+ 5
No you cannot override constructors.
23rd Oct 2017, 5:25 PM
Rrestoring faith
Rrestoring faith - avatar
0
To override a method it has to be inherited. Since constructors are not member methods hence can not be inherited and thus can not be overriden.
7th Apr 2018, 2:29 PM
Sudarshan Kumar Gond
Sudarshan Kumar Gond - avatar