聯(lián)系客服微信掃一掃關注公眾號后聯(lián)系客服
          掃碼練習微信掃碼免費搜題
          • 首頁

          • 題庫

          • 網(wǎng)課

          • 在線???/h3>

          • 桌面端

          登錄
          • 搜標題
          • 搜題干
          • 搜選項
          單項選擇題

          現(xiàn)有: 
          1.class SuperFoo{ 
          2.SuperFoo doStuff (int x)  {     
          3.return new SuperFoo();     
          4.    }     
          5.  }     
          6. 
          7. class Foo extends SuperFoo  {    
          8.    //insert code here    
          9.  } 
          和四個聲明:  
          Foo doStuff (int x)  {  return new Foo();  } 
          Foo doStuff (int x)  {  return new SuperFoo();  }     
          SuperFoo doStuff(int x)  {  return new Foo();  } 
          SuperFoo doStuff(int y)  {  return new SuperFoo();  }   
          分別插入到第8行,有幾個可以通過編澤?()    

          A. 1
          B. 2
          C. 3
          D. 4

          題目列表

          你可能感興趣的試題

          • 單項選擇題

            現(xiàn)有: 
            class Bird { 
            void talk() { System.out.print("chirp "); }        
            } 
            class Parrot2 extends Bird { 
            protected void talk() { System.out.print("hello ");       
            public static void main(String [] args) { 
            Bird [] birds = {new Bird(), new Parrot2 () };        
            for( Bird b : birds)         
            b.talk () ;        
            }        
            } 
            結果是什么 ?()      

            A. chirp chirp
            B. hello hello
            C. chirp hello
            D.編譯錯誤

          • 單項選擇題

            現(xiàn)有 
            class Beverage { 
            Beverage ()  {  System.out.print ("beverage ");  }       
            } 
            class Beer extends Beverage { 
            public static void main{string [] args) {       
            Beer b = new Beer (14) ;      
            } 
            public int Beer(int x) {      
            this () ; 
            System.out.print ("beerl") ;     
            } 
            public Beer() { System.out.print("beer2 "); }    
            } 
            結果是什么?() 

            A.beerl beverage
            B.beer2 beverage
            C.beverage beer2 beerl
            D.編譯失敗

          掃碼聯(lián)系掃碼聯(lián)系在線客服
          反饋使用問題
          掃碼練習掃碼使用找答案小程序
          手機搜題/刷題/上網(wǎng)課

          版權所有?考試資料網(wǎng)(ppkao.com) 長沙求知信息技術有限公司 All Rights Reserved

          湘公網(wǎng)安備 43010202000353號備案號: 湘ICP備14005140號-2

          經(jīng)營許可證號 : 湘B2-20140064

          • 聯(lián)系客服
          • 小程序
          • 桌面端下載
          • 回到頂部

          感谢您访问我们的网站,您可能还对以下资源感兴趣:

          国产福利小视频尤物98