Hi all,
One of the Java documentation I found that the keyword “super” can be use to call the original method from inside a method definition.
Then look at the following code,
Let me explain it,Code:void addNumbers(int a, int b) { // process 1 super.addNumbers(a, b) // process 2 }
On the process 1, add "a" and "b" together. On the process 2 add "a" and "b" with another int value. If I do so, is it ok. Please comment me on this.




Reply With Quote