下列程序片段中,能通过编译的是:
A.public abstract class Animal{ public void speak();} B.public abstract class Animal{ public void speak(){}} C.public class Animal{ public abstract void speak();} D.public abstract class Animal{ public abstract void speak(){}}正确答案B
下列程序片段中,能通过编译的是:
A.public abstract class Animal{ public void speak();} B.public abstract class Animal{ public void speak(){}} C.public class Animal{ public abstract void speak();} D.public abstract class Animal{ public abstract void speak(){}}正确答案B