}
public void straat() { (2) ; }
public void postcode() { (3) ; }
public void plaats(){ (4) ; }
//其他成员省略 }
class Test {
public static void main(String[] args) { Address addr= new Address(); (5) ;
System.out.println(\testDutch(addrAdapter); }
Static void testDutch(DutchAddress addr){ addr.straat(); addr.postcode(); addr.plaats(); } }
答案解析:
(1)Address address; (2)address.street(); (3)address.zip();
16
(4)address.city();
(5)DutchAddress addrAdapter=new DutchAddressAdaptor(addr);
17
2016上半年软件设计师考试真题及答案-下午卷
}publicvoidstraat(){(2);}publicvoidpostcode(){(3);}publicvoidplaats(){(4);}//其他成员省略}classTest{publicstaticvoidmain(String[]
推荐度:
点击下载文档文档为doc格式