Java °æ (¾«»ªÇø)
·¢ÐÅÈË: iWantToFly (ÄǾÍѧ×öÉúÓãƬ), ÐÅÇø: Java
±ê Ìâ: [ºÏ¼¯]ÈçºÎÀí½â¼Ì³ÐÖÐ"µ¥¸ù½á¹¹"µÄÓŵ㣿
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2002Äê01ÔÂ03ÈÕ13:40:04 ÐÇÆÚËÄ), Õ¾ÄÚÐżþ
·¢ÐÅÈË: lofe (¡¼¸Ð¼¤Éú»î¡½), ÐÅÇø: Java
±ê Ìâ: ÈçºÎÀí½â¼Ì³ÐÖÐ"µ¥¸ù½á¹¹"µÄÓŵ㣿
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê12ÔÂ20ÈÕ09:16:50 ÐÇÆÚÈý), Õ¾ÄÚÐżþ
¡¶Thinking in Java¡·ÖеÄ1.7.2½Ú µ¥¸ù½á¹¹ Ò»½Ú£¬¶ÁÁËn±é£¬ÈÔÈ»²»µÃÒªÁì :-(
ÀýÈçÏÂÃæÕâЩ¹Ûµã£º
µ¥¸ù½á¹¹ÖеÄËùÓжÔÏó¶¼ÓÐÒ»¸öͨÓýӿڣ¬ËùÒÔËüÃÇ×îÖÕ¶¼ÊôÓÚÏàͬµÄÀàÐÍ¡£ÁíÒ»ÖÖ·½°¸
£¨¾ÍÏóC++ÄÇÑù£©ÊÇÎÒÃDz»Äܱ£Ö¤ËùÓж«Î÷¶¼ÊôÓÚÏàͬµÄ»ù±¾ÀàÐÍ¡£
//ÕâÀïµÄ¡°ÀàÐÍ¡±ÈçºÎÀí½â£¿
µ¥¸ù½á¹¹ÖеÄËùÓжÔÏ󣨱ÈÈçËùÓÐJava¶ÔÏ󣩶¼¿ÉÒÔ±£Ö¤ÓµÓÐһЩÌض¨µÄ¹¦ÄÜ¡£
//ÈçºÎÀí½â£¿
Ò»¸öµ¥¸ù½á¹¹£¬¼ÓÉÏËùÓжÔÏó¶¼ÔÚÄÚ´æ¶ÑÖд´½¨£¬¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¨ÕâÔÚC++Àï
ÊÇÒ»¸ö¸´ÔӵĸÅÄ¡£
//ÈçºÎÀí½â¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¿
¶àл£¡
--
Ò®öÕ˵£ºÈ˲»ÄÜÖ»¿¿Ãæ°ü¹ý»î£¬ÄãµÄÐÄÁéÐèÒª±ÈÃæ°ü
¸üÓÐÓªÑøµÄ¶«Î÷£¬ÄãÓжà¾ÃûÓгª¸è£¬Ã»Óе½´ó×ÔÈ»ÖÐ×ß
Ò»×ߣ¬Ã»ÓжÁÊ«£¿
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: malacs.hit.edu.cn]
·¢ÐÅÈË: Sun (´óµÆÅÝ), ÐÅÇø: Java
±ê Ìâ: Re: ÈçºÎÀí½â¼Ì³ÐÖÐ"µ¥¸ù½á¹¹"µÄÓŵ㣿
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê12ÔÂ20ÈÕ10:02:40 ÐÇÆÚÈý), Õ¾ÄÚÐżþ
¡¾ ÔÚ lofe (¡¼¸Ð¼¤Éú»î¡½) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ¡¶Thinking in Java¡·ÖеÄ1.7.2½Ú µ¥¸ù½á¹¹ Ò»½Ú£¬¶ÁÁËn±é£¬ÈÔÈ»²»µÃÒªÁì :-(
: ÀýÈçÏÂÃæÕâЩ¹Ûµã£º
: µ¥¸ù½á¹¹ÖеÄËùÓжÔÏó¶¼ÓÐÒ»¸öͨÓýӿڣ¬ËùÒÔËüÃÇ×îÖÕ¶¼ÊôÓÚÏàͬµÄÀàÐÍ¡£ÁíÒ»ÖÖ·½°¸
: £¨¾ÍÏóC++ÄÇÑù£©ÊÇÎÒÃDz»Äܱ£Ö¤ËùÓж«Î÷¶¼ÊôÓÚÏàͬµÄ»ù±¾ÀàÐÍ¡£
: //ÕâÀïµÄ¡°ÀàÐÍ¡±ÈçºÎÀí½â£¿
´ÓTIJ 2edµÄ´Ê»ã±íÖпÉÒÔÕÒµ½¶ÔtypeµÄ½âÊÍ
¹ØÓÚtype:
A type does more than describe the constraints on a set of objects; it
also has a relationship with other types. Two types can have characteristics
and behaviors in common, but one type may contain more characteristics than
another and may also handle more messages (or handle them differently).
Inheritance expresses this similarity between types using the concept of
base types and derived types. A base type contains all of the
characteristics and behaviors that are shared among the types derived from
it. You create a base type to represent the core of your ideas about some
objects in your system. From the base type, you derive other types to
express the different ways that this core can be realized.
typeÆäʵ¾ÍÊÇÀà
: µ¥¸ù½á¹¹ÖеÄËùÓжÔÏ󣨱ÈÈçËùÓÐJava¶ÔÏ󣩶¼¿ÉÒÔ±£Ö¤ÓµÓÐһЩÌض¨µÄ¹¦ÄÜ¡£
: //ÈçºÎÀí½â£¿
typeÊÇÀ࣬ÄÇôÕâ¸öÒ²¾ÍºÃÀí½âÁË¡£×ÓÀ๲Óи¸ÀàµÄ¹¦ÄÜ¡£
: Ò»¸öµ¥¸ù½á¹¹£¬¼ÓÉÏËùÓжÔÏó¶¼ÔÚÄÚ´æ¶ÑÖд´½¨£¬¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¨ÕâÔÚC++Àï
: ÊÇÒ»¸ö¸´ÔӵĸÅÄ¡£
: //ÈçºÎÀí½â¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¿
Õâ¸öÒ²Ðí¿´ÍêÈ«Êé²ÅÄÜÕÒµ½´ð°¸¡£:)
: ¶àл£¡
ÇëÎÒ¸¯°Ü£¡
--
Ì«Ñôµ±¿ÕÕÕ£¬µÆÅݺǺÇЦ£¬
mm˵£¬ÔçÉϺã¬ÄãΪʲôÓÖ²»ÀíÎÒÁË£¿
ÎÒÒª×ö¹â¹â£¬¹â¹âû·³ÄÕ£¬
¸ß¸ßÌø£¬´óÉù½Ð£¬¹â¹âµÄÀÖȤÄãÃDz»ÖªµÀ£¡
ÖªµÀÖйúÈí¼þҵΪʲôÂäºóÂð£¿
ºöÊÓÈí¼þ¹¤³Ì£¬ÖйúÈí¼þÒµ½«ÓÀÔ¶ÂäºóÏÂÈ¥...
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: sunner.hit.edu.cn]
·¢ÐÅÈË: AlanZhao (Alan), ÐÅÇø: Java
±ê Ìâ: Re: ÈçºÎÀí½â¼Ì³ÐÖÐ"µ¥¸ù½á¹¹"µÄÓŵ㣿
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê12ÔÂ20ÈÕ10:18:34 ÐÇÆÚÈý), Õ¾ÄÚÐżþ
µ¥¸ù½á¹¹ÖеÄËùÓжÔÏó¶¼ÓÐÒ»¸öͨÓýӿڣ¬ËùÒÔËüÃÇ×îÖÕ¶¼ÊôÓÚ
ÏàͬµÄÀàÐÍ¡£ÁíÒ»ÖÖ·½°¸£¨¾ÍÏóC++ÄÇÑù£©ÊÇÎÒÃDz»Äܱ£Ö¤ËùÓж«
Î÷¶¼ÊôÓÚÏàͬµÄ»ù±¾ÀàÐÍ¡£
ÎÒÏëÕâÀïµÄµ¥¸ù½á¹¹ÊÇÖ¸ÔÚJavaÖÐËùÓеÄÀ඼ÓÉlang.ObjectÅÉÉú
¶øÀ´£¬µ«ÖµµÃ×¢ÒâµÄÊÇObject²¢²»ÊÇÒ»¸ö½Ó¿Ú£¬¶øÊÇÒ»¸öʵʵÔÚ
ÔÚµÄÀà¡£¶øJavaÖ§³ÖÓи¸ÀàÒýÓÃÒýµ¼Æä×Ó¶ÔÏóµÄ·½·¨¡¢ÒÔ¼°Æäºó
µÄÀ©Õ¹£¬ËùÒÔ˵ËüÃÇ×îÖÕ¶¼ÊôÓÚÏàͬµÄÀàÐÍ¡£ÕâÀïµÄµ¥¸ù½á¹¹ËÆ
ºõ²»ÊÇ˵JavaµÄµ¥¼Ì³Ð½á¹¹£¬ÒòΪËû²»ÊÇÊ®·Ö±¾ÖʵĶ«Î÷£¨ÎÒ¾õ
µÃÓ¦¸ÃÊÇÕâÑù£¬ÒòΪ¿ÉÒÔͨ¹ý½Ó¿ÚÓÐЧµÄʵÏÖ¶à¼Ì³ÐËùÄÜʵÏÖµÄ
¹¦ÄÜ£©¡£ÎÒÏëC£«£«²»Äܱ£Ö¤ËùÓж«Î÷¶¼ÊôÓÚÏàͬµÄ»ù±¾ÀàÐÍ£¬¿É
ÄÜÊÇ˵C£«£«²¢²»Ç¿ÖƵĹ涨ËùÓеÄÀ඼ÓÉijһ»ùÀàÅÉÉú¶øÀ´£¬²¢
²»ÊÇ˵C£«£«²»ÄÜʵÏÖÕâÖֽṹ£¬Ö»ÒªÄãÔÚ³ÌÐòÖÐʹÓÃÕâÖֽṹ£¬
ÄãÒ²¿ÉÒÔÏíÓÃÕâÖֽṹËù´øÀ´µÄºÃ´¦¡£µ±È»ÕâÖֽṹËƺõ·´Ó³³öÒ»
ÖÖ˼Ï룬ÊǹᴩÓÚÕû¸öÓïÑԵģ¬ËùÒÔËûÓ¦¸Ã²»ÊÇÒ»¸ö¾Ö²¿µÄ¸ÅÄî¡£
µ¥¸ù½á¹¹ÖеÄËùÓжÔÏ󣨱ÈÈçËùÓÐJava¶ÔÏ󣩶¼¿ÉÒÔ±£Ö¤ÓµÓÐÒ»
ЩÌض¨µÄ¹¦ÄÜ¡£
ÕâЩÌØÕ÷£¨Ìض¨¹¦ÄÜ£©Ó¦¸ÃÊÇ´ÓObjectÀà¼Ì³Ð¶øÀ´£¨¿ÉÒÔ¿´Ò»ÏÂ
ObjectµÄ°ïÖúÎĵµ£©£¬Èç¹ûÊÇÒ»¸ö¾Ö²¿µÄ¸ù½á¹¹£¬ËùÓеײãÓ¦¸Ã
Óоֲ¿¸ùµÄÌØÐÔ£¬ÈçContainerÀàºÍËûµÄ×ÓÀàÃÇ¡££¨µ±È»ÕâÊÇÏÔÈ»
µÄ£¬²¢ÇÒ¶ÔÓÚËùÓеÄÃæÏò¶ÔÏóµÄÓïÑÔÒ²¶¼ÊÇ¿ÉʵÏֵģ©¡£
Ò»¸öµ¥¸ù½á¹¹£¬¼ÓÉÏËùÓжÔÏó¶¼ÔÚÄÚ´æ¶ÑÖд´½¨£¬¿ÉÒÔ¼«´ó¼ò»¯
²ÎÊýµÄ´«µÝ£¨ÕâÔÚC++ÀïÊÇÒ»¸ö¸´ÔӵĸÅÄ¡£
C£«£«Ò»¶¨»¹Òª¿¼ÂÇÕ»Öк¯Êý²ÎÊý´«µÝµÄÇé¿ö£¬µ±È»Òª¸´ÔÓһЩ£¨
ÎҸоõ£©¡£
ÕâÊÇÎÒµÄÏë·¨£¬¿Ï¶¨Óв»ÕýÈ·µÄµØ·½£¬´ó¼Ò¶àÖ¸Õý¡£
¡¾ ÔÚ lofe (¡¼¸Ð¼¤Éú»î¡½) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ¡¶Thinking in Java¡·ÖеÄ1.7.2½Ú µ¥¸ù½á¹¹ Ò»½Ú£¬¶ÁÁËn±é£¬ÈÔÈ»²»µÃÒªÁì :-(
: ÀýÈçÏÂÃæÕâЩ¹Ûµã£º
: µ¥¸ù½á¹¹ÖеÄËùÓжÔÏó¶¼ÓÐÒ»¸öͨÓýӿڣ¬ËùÒÔËüÃÇ×îÖÕ¶¼ÊôÓÚÏàͬµÄÀàÐÍ¡£ÁíÒ»ÖÖ·½°¸
: £¨¾ÍÏóC++ÄÇÑù£©ÊÇÎÒÃDz»Äܱ£Ö¤ËùÓж«Î÷¶¼ÊôÓÚÏàͬµÄ»ù±¾ÀàÐÍ¡£
: //ÕâÀïµÄ¡°ÀàÐÍ¡±ÈçºÎÀí½â£¿
: µ¥¸ù½á¹¹ÖеÄËùÓжÔÏ󣨱ÈÈçËùÓÐJava¶ÔÏ󣩶¼¿ÉÒÔ±£Ö¤ÓµÓÐһЩÌض¨µÄ¹¦ÄÜ¡£
: //ÈçºÎÀí½â£¿
: Ò»¸öµ¥¸ù½á¹¹£¬¼ÓÉÏËùÓжÔÏó¶¼ÔÚÄÚ´æ¶ÑÖд´½¨£¬¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¨ÕâÔÚC++Àï
: ÊÇÒ»¸ö¸´ÔӵĸÅÄ¡£
: //ÈçºÎÀí½â¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¿
: ¶àл£¡
--
Òµ¾«ÓÚÇÚ£¬¶ø»ÄÓÚæÒ¡£
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: 202.118.239.54]
·¢ÐÅÈË: xxxxx (ÒòΪ¼Åį), ÐÅÇø: Java
±ê Ìâ: Re: ÈçºÎÀí½â¼Ì³ÐÖÐ"µ¥¸ù½á¹¹"µÄÓŵ㣿
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê12ÔÂ20ÈÕ15:03:05 ÐÇÆÚÈý), Õ¾ÄÚÐżþ
Õâ¸öÎÒÀ´´ð
¡¾ ÔÚ lofe (¡¼¸Ð¼¤Éú»î¡½) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ¡¶Thinking in Java¡·ÖеÄ1.7.2½Ú µ¥¸ù½á¹¹ Ò»½Ú£¬¶ÁÁËn±é£¬ÈÔÈ»²»µÃÒªÁì :-(
: ÀýÈçÏÂÃæÕâЩ¹Ûµã£º
: µ¥¸ù½á¹¹ÖеÄËùÓжÔÏó¶¼ÓÐÒ»¸öͨÓýӿڣ¬ËùÒÔËüÃÇ×îÖÕ¶¼ÊôÓÚÏàͬµÄÀàÐÍ¡£ÁíÒ»ÖÖ·½°¸
: £¨¾ÍÏóC++ÄÇÑù£©ÊÇÎÒÃDz»Äܱ£Ö¤ËùÓж«Î÷¶¼ÊôÓÚÏàͬµÄ»ù±¾ÀàÐÍ¡£
: //ÕâÀïµÄ¡°ÀàÐÍ¡±ÈçºÎÀí½â£
ÀàÐÍÓëÀ಻ͬ¡£ÔÚÀàÐÍÖУ¬ËùÓеķ½·¨¶¼ÊdzéÏóµÄ£¬²»Éæ¼°µ½¾ßÌåʵÏÖ¡£
smalltalkÖÐÖ»ÓÐÀàÐͶøûÓÐÀàµÄ¸ÅÄî¡£ÓÉÓÚÀàÉæ¼°µ½·½·¨µÄʵÏÖ£¬Òò¶ø
¿É½«ÆäÊÂΪ¾ßÌåµÄÀàÐ˵ÄʵÏÖ¡£
: µ¥¸ù½á¹¹ÖеÄËùÓжÔÏ󣨱ÈÈçËùÓÐJava¶ÔÏ󣩶¼¿ÉÒÔ±£Ö¤ÓµÓÐһЩÌض¨µÄ¹¦ÄÜ¡£
: //ÈçºÎÀí½â£
±ÈÈçÔÚvclÖУ¬ËùÓеÄÀà´ÓTobject¼Ì³Ð¡£¶øÔÚobjectÀàÖÐÉùÃ÷ÁËһЩ±ØÒªµÄ¶«Î÷£¬
±ÈÈçÔËÐÐʱ¿ÌÀàÐ͵ÄÈ·¶¨¡£¹«¹²³õʼ»¯´úÂ룬ºÍerrorÐÅÏ¢µÄÁ¬½ÓµÈ¡£
¶øÔÚc++ÖУ¬MFC¼Ì³ÐÓÚͳһµÄ¸ú£¬µ«io¾ÍÀ´×ÔÁíÍâµÄ¸ú½Óµã¡£
: Ò»¸öµ¥¸ù½á¹¹£¬¼ÓÉÏËùÓжÔÏó¶¼ÔÚÄÚ´æ¶ÑÖд´½¨£¬¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¨ÕâÔÚC++Àï
: ÊÇÒ»¸ö¸´ÔӵĸÅÄ¡£
: //ÈçºÎÀí½â¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¿
ÔÚÒ»¸öÅÓ´óµÄ¶à¼Ì³Ð¶ÔÏóÊ÷ÖУ¬Ôõô֪µÀµ±Ç°´«µÝ¶ÔÏóÖ¸ÕëµÄÀàÐÍ£¿
ÏëÏëΪʲôÐèÒªÔÚc++ÖÐÒýÈëÃþ°å£¬ÎªÊ²Ã´javaÖв»ÐèÒªÄØ£¿
: ¶àл£¡
--
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: alioth.hit.edu.cn]
·¢ÐÅÈË: Sun (´óµÆÅÝ), ÐÅÇø: Java
±ê Ìâ: Re: ÈçºÎÀí½â¼Ì³ÐÖÐ"µ¥¸ù½á¹¹"µÄÓŵ㣿
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê12ÔÂ20ÈÕ15:39:10 ÐÇÆÚÈý), Õ¾ÄÚÐżþ
¡¾ ÔÚ xxxxx (ÒòΪ¼Åį) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: Õâ¸öÎÒÀ´´ð
: ¡¾ ÔÚ lofe (¡¼¸Ð¼¤Éú»î¡½) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : ¡¶Thinking in Java¡·ÖеÄ1.7.2½Ú µ¥¸ù½á¹¹ Ò»½Ú£¬¶ÁÁËn±é£¬ÈÔÈ»²»µÃÒªÁì :-(
: : ÀýÈçÏÂÃæÕâЩ¹Ûµã£º
: : µ¥¸ù½á¹¹ÖеÄËùÓжÔÏó¶¼ÓÐÒ»¸öͨÓýӿڣ¬ËùÒÔËüÃÇ×îÖÕ¶¼ÊôÓÚÏàͬµÄÀàÐÍ¡£ÁíÒ»ÖÖ·½°¸
: : £¨¾ÍÏóC++ÄÇÑù£©ÊÇÎÒÃDz»Äܱ£Ö¤ËùÓж«Î÷¶¼ÊôÓÚÏàͬµÄ»ù±¾ÀàÐÍ¡£
: : //ÕâÀïµÄ¡°ÀàÐÍ¡±ÈçºÎÀí½â£
: ÀàÐÍÓëÀ಻ͬ¡£ÔÚÀàÐÍÖУ¬ËùÓеķ½·¨¶¼ÊdzéÏóµÄ£¬²»Éæ¼°µ½¾ßÌåʵÏÖ¡£
: smalltalkÖÐÖ»ÓÐÀàÐͶøûÓÐÀàµÄ¸ÅÄî¡£ÓÉÓÚÀàÉæ¼°µ½·½·¨µÄʵÏÖ£¬Òò¶ø
: ¿É½«ÆäÊÂΪ¾ßÌåµÄÀàÐ˵ÄʵÏÖ¡£
: : µ¥¸ù½á¹¹ÖеÄËùÓжÔÏ󣨱ÈÈçËùÓÐJava¶ÔÏ󣩶¼¿ÉÒÔ±£Ö¤ÓµÓÐһЩÌض¨µÄ¹¦ÄÜ¡£
: : //ÈçºÎÀí½â£
: ±ÈÈçÔÚvclÖУ¬ËùÓеÄÀà´ÓTobject¼Ì³Ð¡£¶øÔÚobjectÀàÖÐÉùÃ÷ÁËһЩ±ØÒªµÄ¶«Î÷£¬
: ±ÈÈçÔËÐÐʱ¿ÌÀàÐ͵ÄÈ·¶¨¡£¹«¹²³õʼ»¯´úÂ룬ºÍerrorÐÅÏ¢µÄÁ¬½ÓµÈ¡£
: ¶øÔÚc++ÖУ¬MFC¼Ì³ÐÓÚͳһµÄ¸ú£¬µ«io¾ÍÀ´×ÔÁíÍâµÄ¸ú½Óµã¡£
: : Ò»¸öµ¥¸ù½á¹¹£¬¼ÓÉÏËùÓжÔÏó¶¼ÔÚÄÚ´æ¶ÑÖд´½¨£¬¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¨ÕâÔÚC++Àï
: : ÊÇÒ»¸ö¸´ÔӵĸÅÄ¡£
: : //ÈçºÎÀí½â¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¿
: ÔÚÒ»¸öÅÓ´óµÄ¶à¼Ì³Ð¶ÔÏóÊ÷ÖУ¬Ôõô֪µÀµ±Ç°´«µÝ¶ÔÏóÖ¸ÕëµÄÀàÐÍ£¿
: ÏëÏëΪʲôÐèÒªÔÚc++ÖÐÒýÈëÃþ°å£¬ÎªÊ²Ã´javaÖв»ÐèÒªÄØ£¿
Õâ¸öÔÙÏêϸ½âÊÍһϺÃÂð£¿
: : ¶àл£¡
--
Èç¹û³ÌÐòÔ±¶®µÃÁËÈí¼þ¹¤³Ì£¬
ÄÇôËû¾Í²»ÔÙÊÇÅ££¬
¸ü²»ÊǼËÅ®ÁË¡£
ÖªµÀÖйúÈí¼þҵΪʲôÂäºóÂð£¿
ºöÊÓÈí¼þ¹¤³Ì£¬ÖйúÈí¼þÒµ½«ÓÀÔ¶ÂäºóÏÂÈ¥...
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: sunner.hit.edu.cn]
·¢ÐÅÈË: lofe (¡¼¸Ð¼¤Éú»î¡½), ÐÅÇø: Java
±ê Ìâ: Re: ÈçºÎÀí½â¼Ì³ÐÖÐ"µ¥¸ù½á¹¹"µÄÓŵ㣿
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê12ÔÂ20ÈÕ21:40:39 ÐÇÆÚÈý), Õ¾ÄÚÐżþ
Sun˵µÄtype¼´class£¬xxxxxËù˵µÄÆäʵҲÊÇÕâ¸öÒâ˼£¬ÎÒÒ²À´²¹³äÒ»¶Î£º
________________________________________________________________________
1.2 ¶ÔÏóµÄ½Ó¿Ú
ÑÇÀïÊ¿¶àµÂ»òÐíÊÇÈÏÕæÑо¿¡°ÀàÐÍ¡±¸ÅÄîµÄµÚÒ»ÈË£¬ËûÔø̸¼°¡°ÓãÀàºÍÄñÀࡱµÄÎÊ
Ìâ¡£ÔÚÊÀ½çÊ×ÀýÃæÏò¶ÔÏóÓïÑÔSimula-67ÖУ¬µÚÒ»´ÎÓõ½ÁËÕâÑùµÄÒ»¸ö¸ÅÄ
ËùÓжÔÏ󡪡ª¾¡¹Ü¸÷ÓÐÌØÉ«¡ª¡ª¶¼ÊôÓÚijһϵÁжÔÏóµÄÒ»²¿·Ö£¬ÕâЩ¶ÔÏó¾ßÓÐͨÓÃ
µÄÌØÕ÷ºÍÐÐΪ¡£ÔÚSimula-67ÖУ¬Ê×´ÎÓõ½ÁËclassÕâ¸ö¹Ø¼ü×Ö£¬ËüΪ³ÌÐòÒýÈëÁËÒ»
¸öȫеÄÀàÐÍ£¨clasºÍtypeͨ³£¿É»¥»»Ê¹Óã»×¢ÊÍ¢Û£©¡£
¢Û£ºÓÐЩÈ˽øÐÐÁ˽øÒ»²½µÄÇø·Ö£¬ËûÃÇÇ¿µ÷¡°ÀàÐÍ¡±¾ö¶¨Á˽ӿڣ¬¶ø¡°ÀࡱÊÇÄǸö
½Ó¿ÚµÄÒ»ÖÖÌØÊâʵÏÖ·½Ê½¡£
________________________________________________________________________
¡¾ ÔÚ lofe (¡¼¸Ð¼¤Éú»î¡½) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ¡¶Thinking in Java¡·ÖеÄ1.7.2½Ú µ¥¸ù½á¹¹ Ò»½Ú£¬¶ÁÁËn±é£¬ÈÔÈ»²»µÃÒªÁì :-(
: ÀýÈçÏÂÃæÕâЩ¹Ûµã£º
: µ¥¸ù½á¹¹ÖеÄËùÓжÔÏó¶¼ÓÐÒ»¸öͨÓýӿڣ¬ËùÒÔËüÃÇ×îÖÕ¶¼ÊôÓÚÏàͬµÄÀàÐÍ¡£ÁíÒ»ÖÖ·½°¸
: £¨¾ÍÏóC++ÄÇÑù£©ÊÇÎÒÃDz»Äܱ£Ö¤ËùÓж«Î÷¶¼ÊôÓÚÏàͬµÄ»ù±¾ÀàÐÍ¡£
: //ÕâÀïµÄ¡°ÀàÐÍ¡±ÈçºÎÀí½â£¿
Ò²¾ÍÊÇ˵×ÓÀàÓë»ùÀà¾ÍÊôÓÚÏàͬµÄ»ù±¾ÀàÐÍ£¿
: µ¥¸ù½á¹¹ÖеÄËùÓжÔÏ󣨱ÈÈçËùÓÐJava¶ÔÏ󣩶¼¿ÉÒÔ±£Ö¤ÓµÓÐһЩÌض¨µÄ¹¦ÄÜ¡£
: //ÈçºÎÀí½â£¿
ÊÇÍ»³öÁËÊý¾Ý³ÉÔ±°É£¬¶ø²»¹Ü×ÓÀà×Ô¼ºÊµÏÖµÄÆäËû½Ó¿Ú£¿
: Ò»¸öµ¥¸ù½á¹¹£¬¼ÓÉÏËùÓжÔÏó¶¼ÔÚÄÚ´æ¶ÑÖд´½¨£¬¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¨ÕâÔÚC++Àï
: ÊÇÒ»¸ö¸´ÔӵĸÅÄ¡£
: //ÈçºÎÀí½â¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¿
¼õÉÙÁ˲»±ØÒªµÄ¹¹Ô캯Êý¡¢Îö¹»º¯ÊýÂð£¿
xxxxxÄÜ°ÑC++Ä£°å½²µÄÏêϸЩÂð£¿
µÆÅÝÊÇûµÃ¾ÈÁË£¬³¹µ×µÄ¸¯°Ü·Ö×Ó£¡£¡//sign
: ¶àл£¡
--
Ò®öÕ˵£ºÈ˲»ÄÜÖ»¿¿Ãæ°ü¹ý»î£¬ÄãµÄÐÄÁéÐèÒª±ÈÃæ°ü
¸üÓÐÓªÑøµÄ¶«Î÷£¬ÄãÓжà¾ÃûÓгª¸è£¬Ã»Óе½´ó×ÔÈ»ÖÐ×ß
Ò»×ߣ¬Ã»ÓжÁÊ«£¿
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: malacs.hit.edu.cn]
¡ù ÐÞ¸Ä:¡¤lofe ì¶ 12ÔÂ20ÈÕ21:41:06 Ð޸ı¾ÎÄ¡¤[FROM: malacs.hit.edu.cn]
·¢ÐÅÈË: Sun (´óµÆÅÝ), ÐÅÇø: Java
±ê Ìâ: Re: ÈçºÎÀí½â¼Ì³ÐÖÐ"µ¥¸ù½á¹¹"µÄÓŵ㣿
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê12ÔÂ20ÈÕ21:44:48 ÐÇÆÚÈý), Õ¾ÄÚÐżþ
¡¾ ÔÚ lofe (¡¼¸Ð¼¤Éú»î¡½) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: Sun˵µÄtype¼´class£¬xxxxxËù˵µÄÆäʵҲÊÇÕâ¸öÒâ˼£¬ÎÒÒ²À´²¹³äÒ»¶Î£º
: ________________________________________________________________________
: 1.2 ¶ÔÏóµÄ½Ó¿Ú
: ÑÇÀïÊ¿¶àµÂ»òÐíÊÇÈÏÕæÑо¿¡°ÀàÐÍ¡±¸ÅÄîµÄµÚÒ»ÈË£¬ËûÔø̸¼°¡°ÓãÀàºÍÄñÀࡱµÄÎÊ
: Ìâ¡£ÔÚÊÀ½çÊ×ÀýÃæÏò¶ÔÏóÓïÑÔSimula-67ÖУ¬µÚÒ»´ÎÓõ½ÁËÕâÑùµÄÒ»¸ö¸ÅÄ
: ËùÓжÔÏ󡪡ª¾¡¹Ü¸÷ÓÐÌØÉ«¡ª¡ª¶¼ÊôÓÚijһϵÁжÔÏóµÄÒ»²¿·Ö£¬ÕâЩ¶ÔÏó¾ßÓÐͨÓÃ
: µÄÌØÕ÷ºÍÐÐΪ¡£ÔÚSimula-67ÖУ¬Ê×´ÎÓõ½ÁËclassÕâ¸ö¹Ø¼ü×Ö£¬ËüΪ³ÌÐòÒýÈëÁËÒ»
: ¸öȫеÄÀàÐÍ£¨clasºÍtypeͨ³£¿É»¥»»Ê¹Óã»×¢ÊÍ¢Û£©¡£
: ¢Û£ºÓÐЩÈ˽øÐÐÁ˽øÒ»²½µÄÇø·Ö£¬ËûÃÇÇ¿µ÷¡°ÀàÐÍ¡±¾ö¶¨Á˽ӿڣ¬¶ø¡°ÀࡱÊÇÄǸö
: ½Ó¿ÚµÄÒ»ÖÖÌØÊâʵÏÖ·½Ê½¡£
: ________________________________________________________________________
: ¡¾ ÔÚ lofe (¡¼¸Ð¼¤Éú»î¡½) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : ¡¶Thinking in Java¡·ÖеÄ1.7.2½Ú µ¥¸ù½á¹¹ Ò»½Ú£¬¶ÁÁËn±é£¬ÈÔÈ»²»µÃÒªÁì :-(
: : ÀýÈçÏÂÃæÕâЩ¹Ûµã£º
: : µ¥¸ù½á¹¹ÖеÄËùÓжÔÏó¶¼ÓÐÒ»¸öͨÓýӿڣ¬ËùÒÔËüÃÇ×îÖÕ¶¼ÊôÓÚÏàͬµÄÀàÐÍ¡£ÁíÒ»ÖÖ·½°¸
: : £¨¾ÍÏóC++ÄÇÑù£©ÊÇÎÒÃDz»Äܱ£Ö¤ËùÓж«Î÷¶¼ÊôÓÚÏàͬµÄ»ù±¾ÀàÐÍ¡£
: : //ÕâÀïµÄ¡°ÀàÐÍ¡±ÈçºÎÀí½â£¿
: Ò²¾ÍÊÇ˵×ÓÀàÓë»ùÀà¾ÍÊôÓÚÏàͬµÄ»ù±¾ÀàÐÍ£¿
¾ÍÊÇ˵ËùÓеÄÀ඼´Óͬһ¸öÀàÖ±½Ó»ò¼ä½ÓÅÉÉú³öÀ´¡£
: : µ¥¸ù½á¹¹ÖеÄËùÓжÔÏ󣨱ÈÈçËùÓÐJava¶ÔÏ󣩶¼¿ÉÒÔ±£Ö¤ÓµÓÐһЩÌض¨µÄ¹¦ÄÜ¡£
: : //ÈçºÎÀí½â£¿
: ÊÇÍ»³öÁËÊý¾Ý³ÉÔ±°É£¬¶ø²»¹Ü×ÓÀà×Ô¼ºÊµÏÖµÄÆäËû½Ó¿Ú£¿
¼Ì³ÐÁ˹«¹²»ùÀàµÄ¹¦ÄÜ¡£
: : Ò»¸öµ¥¸ù½á¹¹£¬¼ÓÉÏËùÓжÔÏó¶¼ÔÚÄÚ´æ¶ÑÖд´½¨£¬¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¨ÕâÔÚC++Àï
: : ÊÇÒ»¸ö¸´ÔӵĸÅÄ¡£
: : //ÈçºÎÀí½â¿ÉÒÔ¼«´ó¼ò»¯²ÎÊýµÄ´«µÝ£¿
: ¼õÉÙÁ˲»±ØÒªµÄ¹¹Ô캯Êý¡¢Îö¹»º¯ÊýÂð£¿
: xxxxxÄÜ°ÑC++Ä£°å½²µÄÏêϸЩÂð£¿
: µÆÅÝÊÇûµÃ¾ÈÁË£¬³¹µ×µÄ¸¯°Ü·Ö×Ó£¡£¡//sign
ÎÒÕýÔÚ¸ÄÔìÖУ¬½ñÌìµÃÁË´óÇ®¶¼Ã»Çë¿Í
: : ¶àл£¡
--
Ì«Ñôµ±¿ÕÕÕ£¬µÆÅݺǺÇЦ£¬
mm˵£¬ÔçÉϺã¬ÄãΪʲôÓÖ²»ÀíÎÒÁË£¿
ÎÒÒª×ö¹â¹â£¬¹â¹âû·³ÄÕ£¬
¸ß¸ßÌø£¬´óÉù½Ð£¬¹â¹âµÄÀÖȤÄãÃDz»ÖªµÀ£¡
ÖªµÀÖйúÈí¼þҵΪʲôÂäºóÂð£¿
ºöÊÓÈí¼þ¹¤³Ì£¬ÖйúÈí¼þÒµ½«ÓÀÔ¶ÂäºóÏÂÈ¥...
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: sunner.hit.edu.cn]
·¢ÐÅÈË: lofe (¡¼¸Ð¼¤Éú»î¡½), ÐÅÇø: Java
±ê Ìâ: Re: ÈçºÎÀí½â¼Ì³ÐÖÐ"µ¥¸ù½á¹¹"µÄÓŵ㣿
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê12ÔÂ21ÈÕ10:29:33 ÐÇÆÚËÄ), Õ¾ÄÚÐżþ
¡¾ ÔÚ Sun (´óµÆÅÝ) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ¡¾ ÔÚ lofe (¡¼¸Ð¼¤Éú»î¡½) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : Ò²¾ÍÊÇ˵×ÓÀàÓë»ùÀà¾ÍÊôÓÚÏàͬµÄ»ù±¾ÀàÐÍ£¿
: ¾ÍÊÇ˵ËùÓеÄÀ඼´Óͬһ¸öÀàÖ±½Ó»ò¼ä½ÓÅÉÉú³öÀ´¡£
: : ÊÇÍ»³öÁËÊý¾Ý³ÉÔ±°É£¬¶ø²»¹Ü×ÓÀà×Ô¼ºÊµÏÖµÄÆäËû½Ó¿Ú£¿
: ¼Ì³ÐÁ˹«¹²»ùÀàµÄ¹¦ÄÜ¡£
: : µÆÅÝÊÇûµÃ¾ÈÁË£¬³¹µ×µÄ¸¯°Ü·Ö×Ó£¡£¡//sign
: ÎÒÕýÔÚ¸ÄÔìÖУ¬½ñÌìµÃÁË´óÇ®¶¼Ã»Çë¿Í
¡¡¡¡¡¡¡¡
puke! Ä㻹ÓÐÁ³Ëµ³öÀ´£¿£¡Ì«Ã»ÒåÆøÁË£¡£¡£¡
--
²»ÖªµÀGRE,PPP,PPTPÊÇʲô£¿ËÑË÷MSDN!
MSDNÕæµÄºÜºÃ£¬ÓпվÍÈ¥¿´¿´£¬Äã×ܻᷢÏÖÐí¶àÕÒ²»µ½µÄ¶à¶«Î÷¡£
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: malacs.hit.edu.cn]
¡ù ÐÞ¸Ä:¡¤lofe ì¶ 12ÔÂ21ÈÕ10:46:11 Ð޸ı¾ÎÄ¡¤[FROM: malacs.hit.edu.cn]
·¢ÐÅÈË: zhangyan (½ñÌìûÌÓ¿Î), ÐÅÇø: Java
±ê Ìâ: Re: ÈçºÎÀí½â¼Ì³ÐÖÐ"µ¥¸ù½á¹¹"µÄÓŵ㣿
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2001Äê03ÔÂ17ÈÕ15:50:46 ÐÇÆÚÁù), Õ¾ÄÚÐżþ
Ö»´«µÝÒ»¸öObjectµÄÖ¸Õ루ÒýÓ㩼´¿É
ËùÒÔTemplate¿ÉÒÔÍËÐÝÁË£¿ÊÇÕâ¸öÒâ˼Âð£¿
¡¾ ÔÚ Sun (´óµÆÅÝ) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: ¡¾ ÔÚ xxxxx (ÒòΪ¼Åį) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: : Õâ¸öÎÒÀ´´ð
: : ÀàÐÍÓëÀ಻ͬ¡£ÔÚÀàÐÍÖУ¬ËùÓеķ½·¨¶¼ÊdzéÏóµÄ£¬²»Éæ¼°µ½¾ßÌåʵÏÖ¡£
: : smalltalkÖÐÖ»ÓÐÀàÐͶøûÓÐÀàµÄ¸ÅÄî¡£ÓÉÓÚÀàÉæ¼°µ½·½·¨µÄʵÏÖ£¬Òò¶ø
: : ¿É½«ÆäÊÂΪ¾ßÌåµÄÀàÐ˵ÄʵÏÖ¡£
--
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: 202.118.170.170]
·¢ÐÅÈË: zhangyan (½ñÌìûÌÓ¿Î), ÐÅÇø: Java
±ê Ìâ: Re: ÈçºÎÀí½â¼Ì³ÐÖÐ"µ¥¸ù½á¹¹"µÄÓŵ㣿
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2001Äê03ÔÂ17ÈÕ15:52:37 ÐÇÆÚÁù), Õ¾ÄÚÐżþ
µ«ÊÇ£¬ËƺõÄ£°åº¯Êý¿ÉÒÔ
µ«ÊÇÄ£°åÀàÄØ
ËƺõÓÖÓжÔtemplateµÄÐèÒª
¡¾ ÔÚ zhangyan (½ñÌìûÌÓ¿Î) µÄ´ó×÷ÖÐÌáµ½: ¡¿
: Ö»´«µÝÒ»¸öObjectµÄÖ¸Õ루ÒýÓ㩼´¿É
: ËùÒÔTemplate¿ÉÒÔÍËÐÝÁË£¿ÊÇÕâ¸öÒâ˼Âð£¿
: ¡¾ ÔÚ Sun (´óµÆÅÝ) µÄ´ó×÷ÖÐÌáµ½: ¡¿
--
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: 202.118.170.170]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º206.522ºÁÃë