[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fTiSg22_CeKLvGZUTBmgCu-MEyDUKt2DIFTnQ1zSJBPs":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":41},[],"2026-04-29 21:43:18",354799886,[8,9,10,11],"构造函数的函数名与类同名","在一个类中,只能定义一个构造函数","创建对象时构造函数自动被调用","构造函数没有类型",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},13,"53e1d2ef4961cca8eea3e23969ad2cb9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","默认课程","c7aa525b216f4396824b725cd5a834f3","第六章单元检测","下列说法中错误的是( )",[21,32,42,51,60,69,78,85,94,100],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],354799877,[25,26,27,28],"protected void speakHello()","public abstract static void cry()","int f()","abstract float g()","下列接口中标注的(A,B,C,D)中,哪两个是错误的? interface Takecare { protected void speakHello(); \u002F\u002FA public abstract static void cry(); \u002F\u002FB int f(); \u002F\u002FC abstract float g(); \u002F\u002FD }","v1",1,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":41},[],354799878,[36,37,38,39],"一个类最多可以实现两个接口","如果一个抽象类实现某个接口,那么它必须要重写接口中的全部方法","如果一个非抽象类实现某个接口,那么它可以只重写接口中的部分方法","允许接口中只有一个抽象方法","下列哪个叙述是正确的",0,{"answer":43,"createTime":5,"id":44,"options":45,"question":50,"source":30,"type":41},[],354799879,[46,47,48,49],"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":52,"createTime":5,"id":53,"options":54,"question":59,"source":30,"type":41},[],354799880,[55,56,57,58],"class","private","extends","public","定义类头时,不可能用到的关键字是( )",{"answer":61,"createTime":5,"id":62,"options":63,"question":68,"source":30,"type":41},[],354799881,[64,65,66,67],"一个类只能有一个对象","一个对象可以属于几个不同的类","对象是类的一个具体实例(实体)","一个类中不可以有本类的对象","以下关于类和对象叙述正确的是( )",{"answer":70,"createTime":5,"id":71,"options":72,"question":77,"source":30,"type":41},[],354799882,[73,74,75,76],"float A a","public A a=A( )","A a=new int( )","static A a=new A( )","设 A为已定义的类名,下列声明A类的对象a的语句中正确的是( )",{"answer":79,"createTime":5,"id":80,"options":81,"question":84,"source":30,"type":41},[],354799883,[56,82,83,58],"protected","private或者protected","在使用interface 声明一个接口时,只可以使用哪个修饰符修饰该接口? 或者",{"answer":86,"createTime":5,"id":87,"options":88,"question":93,"source":30,"type":41},[],354799884,[89,90,91,92],"public class A extends Object{&hellip;&hellip; }","final class B{&hellip;&hellip;}","class C{&hellip;&hellip;}","void class D{&hellip;&hellip;}","下列类的定义,错误的是( )",{"answer":95,"createTime":5,"id":96,"options":97,"question":99,"source":30,"type":41},[],354799885,[58,57,98,55],"interface","定义一个接口时,下列哪个关键字用不到",{"answer":101,"createTime":5,"id":6,"options":102,"question":19,"source":30,"type":41},[],[8,9,10,11]]