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
Geography,
7 months ago
Math,
7 months ago
English,
7 months ago
Economy,
1 year ago
Social Sciences,
1 year ago