- class Demo_Interface01 {
- public static void main(String[] args) {
-
- }
- }
- interface InterA{
- public abstract void printA();
- }
- interface InterB extends InterA{
- public abstract void printB();
- }
- interface InterC extends InterA,InterB{
- public abstract void printC();
- }
- class Demo extends Object implements InterA,InterB,InterC {
- public void printA(){
-
- }
- public void printB(){
-
- }
- public void printC(){
-
- }
-
- }
复制代码 |
|