JDK API ¹®¼­¿¡ Àֳ׿ä.


[ Follow Ups ] [ Post Followup ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

Posted by À±°æ±¸ on April 30, 1997 at 19:10:59:

In Reply to: instanceÀÇ template class À̸§ ¾Ë¾Æ³»±â posted by °­½Åµ¿ on April 30, 1997 at 11:44:43:

API ¹®¼­¿¡¼­ java.lang.Class Ŭ·¡½ºÀÇ ³»¿ë¿¡ ´ÙÀ½°ú °°Àº ¿¹Á¦°¡ ÀÖ½À´Ï´Ù.


void printClassName(Object obj) {
System.out.println("The class of " + obj +
" is " + obj.getClass().getName());
}

Áï, ±×³É ¸»ÇϽŠ¿¹Á¦¿¡¼­ a.getClass().getName()À» ½ÇÇàÇϸé Ŭ·¡½º À̸§ÀÎ A¸¦ ¾òÀ» ¼ö ÀÖ´Ù´Â °ÍÀÌÁö¿ä...


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]