Áú¹®)scjp¹®Á¦ -°£´Ü,abstract class


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :¼Û¿µÀÍ 1999³â 6¿ù 18ÀÏ 12:28:41

¿Ö 6¹ø ¹®Á¦´Â ÄÄÆÄÀÏ µÅ´Âµ¥
7¹ø ¹®Á¦´Â ¾ÈµÅ´Â °Ç°¡¿ä?...
º¸¸é º¼¼ö·Ï ½Å±âÇϳ׿ä...


6: What will appear in the standard output when you attempt to compile both classes and run the Washington class below?


abstract class President {
int born;
President(int born) {
this.born = born;
System.out.println(born: + born);
}
}

class Washington extends President {
Washington(int born) {
Super (born);
}
public static void main(String[ ] args) {
Washington w = new Washington(1732);

select the one right anwer.


-a) The code will compile and born: 1732 will appear in standard output.


Question 7)
What will be the result of attempting to compile and run the following code


abstract class MineBase {
abstract void amethod();
static int i;
}


public class Mine extends MineBase
{
public static void main(String argv[]){
int[] ar = new int[5];
for(i = 0;i < ar.length;i++)
System.out.println(ar[i]);


3) Error: Mine must be declared abstract c====





´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
HTML ÅÂ±× Æ÷ÇÔ ¿©ºÎ: HTML ¹®¼­ÀÏ °æ¿ì üũ
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]