code is as follows:
interface PCI {
void start();
void stop();
}
class GraphicsCard implements PCI {
public GraphicsCard() {
System.out.println("");
}
void start() {
System.out.println("");
}
void stop() {
System.out.println("");
}
}
class SoundCard implements PCI {
public SoundCard() {
System.out.println("");
}
void start() {
System.out.println("");
}
void stop() {
System.out.println("");
}
}
class NetCard implements PCI {
public NetCard() {
System.out.println("");
}
void start() {
System.out.println("");
}
void stop() {
System.out.println("");
}
}
class TestPCI {
public static void main(String[] args) {
GraphicsCard a = new GraphicsCard();
SoundCard b = new SoundCard();
NetCard c = new NetCard();
a.start();
a.stop();
}
}
execution problems are as follows :
I can see that there is something wrong with the permission, but I still don"t understand why it went wrong.