Abstract type: Difference between revisions

Content deleted Content added
Added Java
m →‎{{header|Java}}: Changed the name of the interface class
Line 47: Line 47:
}</java>
}</java>
Interfaces in Java may not define any methods and all methods must be public and can be abstract.
Interfaces in Java may not define any methods and all methods must be public and can be abstract.
<java>public interface Abs {
<java>public interface Inter {
public int method1(double value);
public int method1(double value);
public int method2(String name);
public int method2(String name);