-
Why constructors Cannot be overridden in Java 2024?
函数
重写 类中
Questioner:Oliver Hall 2023-05-05 12:30:36
The most authoritative answer in 2024
-

-
Caleb Wright——Works at Oracle, Lives in Redwood City, CA
Constructor Overriding is never
possible in Java. This is because,
Constructor looks like a method but name should be as class name and no return value.
Overriding means what we have declared in Super class, that exactly we have to declare in Sub class it is called
Overriding.
read more >>
About “函数、重写、类中”,people ask:
QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.