If I have a public void send() {//some code} method in the class and it has a child of this class, there is also a public void send() {//some code} method, how can I guarantee that the child must call super.send () somewhere in the send () method, what is it trying to override?
I was curious about this because I wrote in the API where, if you don't call super this method when overriding it, it will throw an exception, telling me that I did not name the super method. Is it hardcoded or can it be done with some keywords in Java?
source share