下列选项中,关于接口的定义正确的是? A: abstractclassDemo1{abstractvoidspeak();abstractvoideat();} B: interfaceDemo2{voidspeak();voideat();} C: interfaceDemo3{voidspeak();voideat(){};} D: interfaceDemo4{voidspeak(){System.out.println("ITCAST");}voideat();}
下列选项中,关于接口的定义正确的是? A: abstractclassDemo1{abstractvoidspeak();abstractvoideat();} B: interfaceDemo2{voidspeak();voideat();} C: interfaceDemo3{voidspeak();voideat(){};} D: interfaceDemo4{voidspeak(){System.out.println("ITCAST");}voideat();}
1