Method (computer programming): Difference between revisions

Content deleted Content added
m Reverted edits by 2405:205:1184:1EEF:0:0:2877:30A5 (talk) (HG) (3.4.6)
Capitalized Java class names to comply with Java programming standards, and removed public modifiers on classes to allow the code to compile within a single file.
Line 20:
 
<syntaxhighlight lang="java">
public class class1Class1 {
int f(int x) {
return x+3;
Line 26:
}
 
public class class2Class2 extends class1Class1 {
@Override
int f(int x) { // overriding