If a constructor of a class is defined as a final modofoer what will be the output of the program
Answers
Answered by
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!
If u define a constructor with a final keyword, then it will display an error message.
Hope this helps!
Similar questions