Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

³õʶJavaÃæÏò¶ÔÏóµÄÌØÐÔ

OOPµÄÌØÐÔÖ÷ÒªÓУº1¡¢·â×°£»2¡¢¼Ì³Ð£»3¡¢¶à̬¡£ÏÂÃæ´ÓÕ⼸¸ö·½Ãæ¾ßÌå²ûÊö¡£
1¡¢·â×°
·â×°Äܽ«ÀàµÄ¾ßÌåÐÅÏ¢Òþ²ØÆðÀ´£¬Ê¹µÃÊý¾ÝµÃµ½±£»¤¡£Æä¾ßÌåʵʩÖ÷ÒªÊÇÒÀ¿¿·ÃÎÊ¿ØÖÆ»úÖÆȨÏÞ£¬ÆäȨÏÞÖ÷ÒªÓÐËÄÖÖ£º1¡¢private£»2¡¢default£¨C++ûÓÐÕâÖÖȨÏÞ£©£»3¡¢protected£»4¡¢public¡£ÔÚÕâËÄÖÖȨÏÞϵÄÊý¾ÝÔÚÍâ½çµÄ¿É¼ûÐÔ²»Í¬¡£PrivateÖ»ÔÚÀàµÄÄÚ²¿¿É¼û£¬Æä×ÓÀàÒ಻¿É¼û£»defaultµÄ¿É¼û·¶Î§À©Õ¹µ½Í¬Ò»¸ö°üÄÚ£»protectedÔÚÀàµÄÄÚ²¿¡¢Í¬¸ö°ü¡¢Æä×ÓÀàÄÚ²¿¿É¼û£»public²»¶ÔÍâ½çÒþ²Ø¡£
ÉùÃ÷ΪprivateµÄ±äÁ¿ÎªÀàÄÚ²¿¿É¼û£¬²¢·Ç¶ÔÏ󼶱ðµÄÄÚ²¿¿É¼û£¬¼´ÔÚÀàµÄʵÀýÄÚ¿ÉÒÔÒýÓÃͬÀàÐ͵ÄÁíһʵÀýµÄprivate±äÁ¿¡£
·â×°½«Êý¾Ý°²È«µÄ±£»¤ÆðÀ´£¬Íâ½çÓû·ÃÎÊÊý¾Ý±ØÐëͨ¹ýÀàÉè¼ÆµÄ½Ó¿Ú£¬ÀàµÄÉè¼Æ¶ÔÓÚÊý¾ÝµÄ°²È«ºÍÀàµÄ¹¦ÄÜÓÐÖØÒª×÷Óá£
2¡¢¼Ì³Ð
¼Ì³ÐÊÇOPPµÄÁíÒ»¸ö´óµÄÌص㣬¼Ì³ÐÃâÈ¥ÁËÖظ´¿ª·¢ÀàËƵĴúÂëËù´øÀ´µÄ·±Ëö£¬½ÚÊ¡ÁËÖظ´¿ª·¢µÄ¿ªÏú£¬µ«ÓÉÓÚÏÖʵÖи÷ÖÖ¶ÔÏóµÄ¸´ÔÓÐÔºÍÔ­À´¿ª·¢µÄÀàËùÃèÊöµÄ¶ÔÏóÌØÐÔ¿ÉÄܲ»¹»×¼È·¡¢²»¹»È«Ã棬¼Ì³ÐÒ²ÃæÁٺܶàÀ§ÄÑ¡£Èçij¸ö¶ÔÏóµÄÌØÐÔ¿ÉÄÜÊÇij¸öÀàËùÃèÊöµÄÌØÐÔµÄÒ»¸ö×Ó¼¯£¬ÈôÒÔ¸ÃÀàÈ¥ÃèÊöÕâ¸ö¶ÔÏó£¬Õâ¾Í¿ÉÄÜÔì³ÉÄÚ´æµÄÀË·Ñ¡£Ä³¸ö¶ÔÏó¿ÉÄÜÖ÷ÒªÓÉij¸öÀàÃèÊöµ«Í¬Ê±ÓÖÓÐÆäËüÀàµÄÌØÐÔ£¬C++¿ÉÒÔ¶àÖؼ̳У¬¼´Ä³¸öÀà¿ÉÒÔͬʱ¼Ì³ÐÆäËü¼¸¸öÀàµÄÌØÐÔ£¬µ«Õâ¿ÉÄÜ´øÀ´³åÍ»¡¢ÀË·Ñ¡£JavaÖ»Ö§³Öµ¥¼Ì³Ð£¨extends£©£¬¼´ÀàÖ»¿ÉÒÔÓÐÒ»¸ö¸¸À࣬¶ÔÓÚ¶àÖؼ̳ÐÎÊÌâÆäʹÓÃÁ˽ӿڣ¨implements£©¡£½Ó¿ÚÆäʵÊÇÒ»ÖÖÃèÊöijÖÖÐÐΪÌØÐԵķ½·¨ÉùÃ÷£¬Æ䲢ûÓз½·¨Ì壬ҪÇóÔÚʵÏÖÁËÆä½Ó¿ÚµÄÀàÖÐÃèд¡£
µ±¸¸ÀàÃèÊöµÄÌØÐÔ²¢²»ÊǷdz£·ûºÏ×ÓÀàµÄÒªÇóʱ£¬ÎÒÃDZØÐëÖØÐÂÃèдÕâЩ·½·¨Ì壬Õâ¾ÍÊÇÖØд£¨¸²¸Ç£©¡£¼´×ÓÀàÖеÄͬÃû£¨²ÎÊýµÈÏàͬ£©º¯Êý¸²¸ÇÁ˸¸ÀàµÄº¯Êý¡£
3¡¢¶à̬
¶à̬·ÖΪÁ½ÖÖ£º±àÒëʱµÄ¶à̬ºÍÔËÐÐʱµÄ¶à̬¡£ÕâÁ½ÖÖµÄʵÏÖ»úÖƲ»Í¬£¬±àÒëʱµÄ¶à̬ÀûÓú¯ÊýµÄÖØÔØ»úÖÆ£¬¼´ÏàͬµÄº¯ÊýÃû²»Í¬µÄ²ÎÊý£¨°üÀ¨²ÎÊýµÄÀàÐÍ¡¢¸öÊý£©µÄº¯Êý×é³ÉÒ»¸öÓÐʵ¼ÊÒâÒåµÄ·½·¨ÌåϵÁУ¬¾ßÌåµ÷ÓÃʱ¸ù¾Ý´«µÝ½øÈ¥µÄ²ÎÊýÑ¡Ôñ²»Í¬µÄº¯Êý¡£ÓÉÓÚÔÚ±àÒëʱ¾Í¿ÉÒÔ¸ù¾Ý²ÎÊýÁбíÈ·¶¨¾ßÌåµÄº¯Êý£¬¹Ê³ÆΪ±àÒëʱµÄ¶à̬£¬Òà³ÆΪÔçÁª±à¡£
ÔËÐÐʱµÄ¶à̬£º±àÒëʱ²»ÖªµÀÐèÒªµ÷ÓÃÄĸö¾ßÌåµÄº¯Êý£¬ÔÚÔËÐÐʱ·½ÄÜÈ·¶¨¡£Îª½âÊÍÔËÐÐʱ¶à̬£¬±ØÐë²ûÊöÒ»ÏÂÉÏËÝÔìÐÍ£¬ÓÉÓÚ×ÓÀà¼Ì³ÐÁ˸¸ÀàµÄÊý¾ÝºÍ·½·¨Ì壬¶øÇÒÓµÓÐ×Ô¼ºµÄÌØÐÔ£¬¼´¸¸ÀàÊÇ×ÓÀàµÄÒ»¸ö×Ó¼¯¡£ÕâÑù¸¸ÀàËùÃèÊöµÄÐÐΪÌØÐÔ×ÓÀàÒàÓУ¬ÕâÑù×ÓÀàµÄ¶ÔÏóÒýÓÿÉÒÔת»¯Îª¸¸ÀàµÄ¶ÔÏóÒýÓᣵ


Ïà¹ØÎĵµ£º

java jdbc µ÷Óà oracle´æ´¢¹ý³Ì ·µ»ØÓαê

1.´´½¨²âÊÔ±í
create table users(
userid int primary key,
username varchar2(20),
userpwd  varchar2(20)
);
insert into users values(1,'test','test');
insert into users values(2,'test','test');
insert into users values(3,'test','test');
insert into users values(4,'test','test');
insert i ......

java mysql ºº×Ö´æÈëʱÂÒÂë


´ÓÍøÂçÕª³­µ½µÄ½â¾ö·½·¨——
½â¾ö·½·¨¶þ£º
      Á¬½Ómysqlʱ(ÎÞÂÛÔÚ´Ómysql¶Á»¹ÊÇÈ¡Êý¾ÝµÄÇé¿ö)£¬Ö¸¶¨Ê¹ÓõıàÂ뷽ʽΪutf-8£¬¾ßÌå´úÂëÈçÏÂ
      //×°ÔØmysql-jdbcÇý¶¯
       Class.forName("com.mysql.jdbc.Driver" ......

JAVAѧϰÐĵÃ

ÕⶼÊÇÎÒѧϰJAVAÇ×Éí¾­ÀúµÄÐĵ㬽ñÌ컨ÁËÒ»¸ö¶àСʱ×ܽá³öÀ´Ï£Íû¶Ô´ó¼ÒÓÐÒ»¶¨µÄ°ïÖú¡£Èç¹ûÈç×ܽ᲻Í×£¬ÇëÖ¸³öºÍÅúÆÀ£¡ÎªÑ§Ï°JAVAµÄ³õѧÕßÆÌÌõѧϰJAVAµÄµÀ·
Ê×ÏÈ´ó¼ÒÒªÃ÷È·Ò»µã£¬ÍâÃæÕÐƸJAVAµÄ£¬Ö÷ÒªÊÇÖ¸µÄJ2EE£¬Ò²¾ÍÊÇBS½á¹¹£¨ä¯ÀÀÆ÷ºÍ·þÎñÆ÷½á¹¹£©JAVAµÄÖ®ËùÒÔ»ðÆðÀ´ÕæÊÇÒòΪBS½á¹¹£¬²¢²»ÔÚCS½á¹¹£¬ËùÒÔÄÇÖÖ´óÐÍÍøÓÎ ......

21ÌìѧͨJava ÏÂÔزο¼

21ÌìѧͨJava6  ÏÂÔصØÖ· http://d.download.csdn.net/down/2031000/bolike£¨Ö»ÓÐÔ´´úÂ룩
<<21ÌìѧͨJava 2(µÚ¶þ°æ)>>(ÖÐÓ¢ÎÄ°æPDF)+¸½ÊéÔ´Âë  ÏÂÔصØÖ· http://www.zzx8.com/html/c16246.html£¨ËƺõÖÐÓ¢ÎĵIJ»¶ÔÓ¦£¬¿´ÖÐÎÄ»¹ÊÇ¿´Ó¢Îĵģ¿£© ......

ÎÒÊÇÈçºÎÓÃJavaÇÀµ½CaoLiuÉçÇøµÄÑûÇëÂëµÄ£¬Ñ§ÒÔÖÂÓÃ

ÔÚºÍгµÄÍøÂçÊÀ½çÖУ¬ÓÐÒ»¸öÉñÃصÄÀÖÔ°£¬½ÐCaoLiuÉçÇø£¨ÓÉÓÚºÍг£¬ÓÃÁËÆ´Òô£©£¬ÕâÊÇÒ»¸ö´«ËµµÄËùÔÚ£¬ÆäÈë¿ÚÈ纣ÊÐò×Â¥Ò»°ã²»¿É×½Ãþ£¬ÓÐÈË˵ÕâÊÇΪÁ˸øÊÀÈËÔì³ÉÒ»ÖÖÉñÃظУ¬Ò²ÓÐÈË˵£¬ÕâÊÇΪÁ˶ã±ÜÉñÊÞºÓзµÄ׷ɱ¡£ÓÐÐÒ£¬ÎÒÕÒµ½ÁËÕâ¸öÈë¿Ú¡£µ«ÊDz»ÐÒµÄÊÇ£¬TMD×¢²áÕ˺Ż¹ÒªÑûÇëÂë¡£
      »¹ºÃ£¬Õâ¸öÊÀ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ