[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fqmQBN7g1WsU6XdXs58CQeAh4E6lml375khPd9cV_u4E":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2023-05-21 14:15:43",21771014,[8,9,10,11],"public","extends","interface","class",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},13,"f4e971416dff0f3fa3b389f4b3a0d0d6","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F9b92bc5760888eabda05e8163b0130ac.jpg","面向对象语言（JAVA）","50aed916a88c4b85a80bb52f0ad5dd92","第六章单元检测","定义一个接口时,下列哪个关键字用不到",[21,32,41,47,56,65,72,81,84,93],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],21771007,[25,26,27,28],"一个类最多可以实现两个接口","如果一个抽象类实现某个接口,那么它必须要重写接口中的全部方法","如果一个非抽象类实现某个接口,那么它可以只重写接口中的部分方法","允许接口中只有一个抽象方法","下列哪个叙述是正确的","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":31},[],21771008,[36,37,38,39],"public int f(){return 100+M;}","int f(){return 100;}","public double f(){return 2.6;}","public abstract int f()","将下列(A,B,C,D)哪个代码替换下列程序中的【代码】不会导致编译错误.interface Com { int M = 200; int f();}class ImpCom implements Com { 【代码】}",{"answer":42,"createTime":5,"id":43,"options":44,"question":46,"source":30,"type":31},[],21771009,[11,45,9,8],"private","定义类头时,不可能用到的关键字是( )",{"answer":48,"createTime":5,"id":49,"options":50,"question":55,"source":30,"type":31},[],21771010,[51,52,53,54],"一个类只能有一个对象","一个对象可以属于几个不同的类","对象是类的一个具体实例(实体)","一个类中不可以有本类的对象","以下关于类和对象叙述正确的是( )",{"answer":57,"createTime":5,"id":58,"options":59,"question":64,"source":30,"type":31},[],21771011,[60,61,62,63],"float A a","public A a=A( )","A a=new int( )","static A a=new A( )","设 A为已定义的类名,下列声明A类的对象a的语句中正确的是( )",{"answer":66,"createTime":5,"id":67,"options":68,"question":71,"source":30,"type":31},[],21771012,[45,69,70,8],"protected","private或者protected","在使用interface 声明一个接口时,只可以使用哪个修饰符修饰该接口?或者",{"answer":73,"createTime":5,"id":74,"options":75,"question":80,"source":30,"type":31},[],21771013,[76,77,78,79],"public class A extends Object{&hellip;&hellip; }","final class B{&hellip;&hellip;}","class C{&hellip;&hellip;}","void class D{&hellip;&hellip;}","下列类的定义,错误的是( )",{"answer":82,"createTime":5,"id":6,"options":83,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":85,"createTime":5,"id":86,"options":87,"question":92,"source":30,"type":31},[],21771015,[88,89,90,91],"构造函数的函数名与类同名","在一个类中,只能定义一个构造函数","创建对象时构造函数自动被调用","构造函数没有类型","下列说法中错误的是( )",{"answer":94,"createTime":5,"id":95,"options":96,"question":101,"source":30,"type":31},[],21771016,[97,98,99,100],"class x","class x extends y","class x implements y1,y2","public class x extends x1,x2","下列类定义中,不正确的是A. B.class x extends y C.class x implements y1,y2 D .public class x extends x1,x2"]