Why constructor cannot be final in Java

JavaJava Programming Java 8

final keyword prevents a method to be overridden. A constructor cannot be overridden, Java doesn't allow to mark it final.

raja
Ali
Published on 02-Feb-2018 11:49:38
Advertisements