//interface
Interface player
{
Int flag=1;
Void play ();//play
Void pause ();//pause
Void the stop ();//stop
}
//abstract class
The abstract class playing
{
Public void display (Object oPara)
{
System. The out. Println (oPara);
}
The abstract void winRun ();
}
//inherited playing abstract classes and implementation class player interface
Public class newPlay extends playing implements player
{
Public void play ()
{
Display (" newPlay. Play () ");//here just demo, remove the code,
}
Public void pause ()
{
Display (" newPlay. Pause () ");//here just demo, remove the code,
}
Public void the stop ()
{
Display (" newPlay. Stop () ");//here just demo, remove the code,
}
Void winRun ()
{
Display (" newPlay winRun () ");//here just demo, remove the code,
}
Public static void main (String [] args)
{
NewPlay p=new newPlay ();
P.p lay ();
P.p ause ();
P. top ();
P.w inRun ();
}
}
Excuse me what's the problem with this code
CodePudding user response:
Don't go to the size of the JAVA plates, ran to the side coincided with a small plate