ÃæÀüÇϱâ
Àå¹Ù±¸´Ï
ÀÚ·áÆÇ¸Å
¸¶À̹ڽº
ÅëÇÕ°Ë»ö

[ÀÌÇÑÃâÆÇ»ç] ÀÚ¹ÙÇÁ·Î±×·¡¹Ö(java programming) 6Àå(6chapter) ¿öÅ©ºÏ(workbook)

seocani > ¹®¼­¹Ú½º > ±âº» Æú´õ | 2008/05/25 ±¸¸Å(0) ¤Ó Á¶È¸(20)
¹®¼­ ¿ä¾àÁ¤º¸
±¸¸ÅÀÚ Æò°¡
  • ÆÇ¸Å°¡°Ý : 1,000¿ø (6Pages)
  • ÀúÀ۽ñâ : 2007/10
  • Ãßõµ¶ÀÚ : ´ëÇлý
¹®¼­ »ó¼¼Á¤º¸
¼Ò°³±Û [ÀÌÇÑÃâÆÇ»ç] ÀÚ¹ÙÇÁ·Î±×·¡¹Ö(java programming) 6Àå(6chapter) ¿öÅ©ºÏ(workbook) ½Ç½À°úÁ¦ 1, 3ÀÔ´Ï´Ù.
¸ñÂ÷ chapter 06 ½Ç½À °úÁ¦1.
¡Ý ºÐ¼®
¡Ý ¼öÁ¤
¡Ý ½ÇÇè Æò°¡

chapter 06 ½Ç½À °úÁ¦2.
¡Ý ºÐ¼®
¡Ý ±¸Çö
¡Ý ½ÇÇè Æò°¡
º»¹®³»¿ë chapter 06 ½Ç½À °úÁ¦1.
¡Ý ¿øÀÎ
»óÀ§ Ŭ·¡½ºÀÎ SuperClass¿¡¼­ result() ºÎºÐÀÌ Á¤ÀÇ µÇÁö ¾Ê¾Ò±â ¶§¹®¿¡, main¿¡¼­ obj.result() ºÎºÐÀ» »ç¿ëÇÒ ¼ö°¡ ¾øÀ¸¹Ç·Î »óÀ§ Ŭ·¡½º¿¡ result()¸¦ Á¤ÀǸ¦ ÇØÁÖ¾î¾ß Çϸç, »óÀ§ Ŭ·¡½º, SuperClass¿¡ ÀÎÀÚ°¡ ¾ø´Â »ý¼ºÀÚ°¡ ¾ø±â ¶§¹®¿¡ super()¸¦ »ç¿ëÇÏ¿©¾ß ÇÑ´Ù.

class SuperClass {
protected int score[];
protected String str;


public SuperClass (int score[]) {
this.score = score;
}

protected int[] sort() {
return score;
}

protected String result() {
return str;
}
}

class SubClass extends SuperClass {
public SubClass(int score[]) {
super(score);
}

public int[] sort() {
for (int index01 = score.length-1; index01 > 0; index01--) {
for(int index02 = 1; index02 <= index01; index02++) {
if (score[index02-1] > score[index02]) {
int temp = score[index02-1];
score[index02-1] = score[index02];
score[index02] = temp;
Âü°íÀÚ·á Âü°íÀÚ·á ¾øÀ½
Çб³Á¤º¸ 2ÁÖ°£ ´Ù¿î¹ÞÀº ÇлýÀÇ Çб³Á¤º¸¸¦ º¸¿©ÁÝ´Ï´Ù.(5P ¼Ò¿ä)
ÀúÀÛ±Ç Á¤º¸ À§ Á¤º¸ ¹× °Ô½Ã¹° ³»¿ëÀÇ Áø½Ç¼º¿¡ ´ëÇÏ¿© ÇØÇÇÄ·ÆÛ½º´Â º¸ÁõÇÏÁö ¾Æ´ÏÇϸç, ÇØ´ç Á¤º¸ ¹× °Ô½Ã¹° ÀúÀ۱ǰú ±âŸ ¹ýÀû Ã¥ÀÓÀº ÀÚ·á µî·ÏÀÚ¿¡°Ô ÀÖ½À´Ï´Ù.
À§ Á¤º¸ ¹× °Ô½Ã¹° ³»¿ëÀÇ ºÒ¹ýÀû ÀÌ¿ë, ¹«´Ü ÀüÀ硤¹èÆ÷´Â ±ÝÁöµÇ¾î ÀÖ½À´Ï´Ù.ÀúÀÛ±ÇÄ§ÇØ, ¸í¿¹ÈÑ¼Õ µî ºÐÀï¿ä¼Ò ¹ß°ß½Ã °í°´¼¾ÅÍÀÇ ÀúÀÛ±ÇÄ§ÇØ ½Å°í¼¾Å͸¦ ÀÌ¿ëÇØ Áֽñ⠹ٶø´Ï´Ù.

±¸¸ÅÆò°¡(
0
)
±¸¸Å¹®ÀÇ(
0
)
Æ®·¢¹é(
0
)