Java's learning summary 1. The Interface in Java is actually class such as: interface ibase {void show ();} It is equivalent to Abstract Class Ibase {Abstract Public Void Show ();} I have a question for discussion. Please hobbia the Java classmates write the results of the program. Package A001; Class TestBase {Private INT X; Private Int Y; Public TestBase () {} public void setxy (int x, int y) {this.x = x; this.y = y;} public void show () { System.out.println ("testbase");} public void showp () {show ();}} public class testclass extends testbase {public void show () {system.out.println ("testclass");}
Package A001; Public Class Mainframe {public static void main (string [] arg) {testbase obj = new testclass (); obj.showp ();}
}