Computer Science, asked by sandeepkhaira7433, 1 year ago

If a constructor of a class is defined as a final modofoer what will be the output of the program

Answers

Answered by siddhartharao77
0
I think constructors cannot be defined as final because they can never be inherited.

If u define a constructor with a final keyword, then it will display an error message.


Hope this helps!
Similar questions