• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 4

Constructors can not be final. Why?

Hi coders, please give me a good reason why constructors in Java can't be final? what if I don't want to let other classes modify/override my constructor?

javaconstructorsfinal
20th Jul 2017, 12:06 PM
Millo
Millo - avatar
1 Answer

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Problem with Javascript function
0 Votes
How can I print a Python set so it looks clean (no {} brackets or quotes)?
2 Votes
Where make_unique is better than unique_ptr(raw pointer)
0 Votes
Can someone help and explain better on slicing
1 Votes
How do I remove duplicates from a list but keep the order?
0 Votes
How do I print a multiplication table neatly?
0 Votes
Why we use return in function ?
0 Votes
Is there anyone who is working on algo bot (trading bot)
0 Votes
Course
1 Votes
Hill Climbing
0 Votes