Java this¡¢superµÄÓ÷¨
¡¡
¡¡ÔÚJavaÖУ¬thisͨ³£Ö¸µ±Ç°¶ÔÏó£¬superÔòÖ¸¸¸ÀàµÄ¡£µ±ÄãÏëÒªÒýÓõ±Ç°¶ÔÏóµÄijÖÖ¶«Î÷£¬±ÈÈ統ǰ¶ÔÏóµÄij¸ö·½·¨£¬»òµ±Ç°¶ÔÏóµÄij¸ö³ÉÔ±£¬Äã±ã
¿ÉÒÔÀûÓÃthisÀ´ÊµÏÖÕâ¸öÄ¿µÄ£¬µ±È»£¬thisµÄÁíÒ»¸öÓÃ;Êǵ÷Óõ±Ç°¶ÔÏóµÄÁíÒ»¸ö¹¹Ô캯Êý£¬ÕâЩÂíÉϾÍÒªÌÖÂÛ¡£Èç¹ûÄãÏëÒýÓø¸ÀàµÄijÖÖ¶«Î÷£¬Ôò·Ç
superĪÊô¡£ÓÉÓÚthisÓësuperÓÐÈç´ËÏàËƵÄһЩÌØÐÔºÍÓëÉú¾ãÀ´µÄijÖÖ¹Øϵ£¬ËùÒÔÎÒÃÇÔÚÕâÒ»¿é¶ùÀ´ÌÖÂÛ£¬Ï£ÍûÄÜ°ïÖúÄãÇø·ÖºÍÕÆÎÕËüÃÇÁ½¸ö¡£
ÔÚÒ»°ã·½·¨ÖÐ
¡¡
¡¡×îÆÕ±éµÄÇé¿ö¾ÍÊÇ£¬ÔÚÄãµÄ·½·¨ÖеÄij¸öÐβÎÃûÓ뵱ǰ¶ÔÏóµÄij¸ö³ÉÔ±ÓÐÏàͬµÄÃû×Ö£¬ÕâʱΪÁ˲»ÖÁÓÚ»ìÏý£¬Äã±ãÐèÒªÃ÷ȷʹÓÃthis¹Ø¼ü×ÖÀ´Ö¸Ã÷ÄãҪʹÓÃij
¸ö³ÉÔ±£¬Ê¹Ó÷½·¨ÊÇ“this.³ÉÔ±Ãû”£¬¶ø²»´øthisµÄÄǸö±ãÊÇÐβΡ£ÁíÍ⣬»¹¿ÉÒÔÓÓthis.·½·¨Ãû”À´ÒýÓõ±Ç°¶ÔÏóµÄij¸ö·½·¨£¬µ«Õâʱthis
¾Í²»ÊDZØÐëµÄÁË£¬Äã¿ÉÒÔÖ±½ÓÓ÷½·¨ÃûÀ´·ÃÎÊÄǸö·½·¨£¬±àÒëÆ÷»áÖªµÀÄãÒªµ÷ÓõÄÊÇÄÇÒ»¸ö¡£ÏÂÃæµÄ´úÂëÑÝʾÁËÉÏÃæµÄÓ÷¨£º
public class DemoThis{
private String name;
private int age;
DemoThis(String name,int age){
setName(name); //Äã¿ÉÒÔ¼ÓÉÏthisÀ´µ÷Ó÷½·¨£¬ÏñÕâÑù£ºthis.setName(name);µ«Õâ²¢²»ÊDZØÐëµÄ
setAge(age);
this.print();
}
public void setName(String name){
this.name=name;//´Ë´¦±ØÐëÖ¸Ã÷ÄãÒªÒýÓóÉÔ±±äÁ¿
}
public void setAge(int age){
this.age=age;
}
public void print(){
System.out.println("Name="+name+" Age="+age);//ÔÚ´ËÐÐÖв¢²»ÐèÒªÓÃthis£¬ÒòΪûÓлᵼÖ»ìÏýµÄ¶«Î÷
}
public static void main(String[] args){
DemoThis dt=new DemoThis("Kevin","22");
}
}
¡¡¡¡Õâ¶Î´úÂëºÜ¼òµ¥£¬²»ÓýâÊÍÄãÒ²Ó¦¸ÃÄÜ¿´Ã÷°×¡£ÔÚ¹¹Ô캯ÊýÖÐÄã¿´µ½ÓÃthis.print(),ÄãÍêÈ«¿ÉÒÔÓÃprint()À´´úÌæËü£¬Á½ÕßЧ¹ûÒ»Ñù¡£ÏÂÃæÎÒÃÇÐÞ¸ÄÕâ¸ö³ÌÐò£¬À´ÑÝʾsuperµÄÓ÷¨¡£
class Person{
public int c;
private String name;
private int age;
protected void setName(String name){
this.name=nam
Ïà¹ØÎĵµ£º
ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1 List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......
C#ÖÐÏÔʾÖÐÎÄ£º
¡¾
·¢ËÍÊý¾Ý£º
string sReturnData = "ÄãºÃ";
Byte[]
bReturnData = Encoding.ASCII.GetBytes(sReturnData.ToCharArray());
m_sktSession.Send(bReturnData);
¡¾½«³öÏÖÂÒÂë¡¿
¡¿  ......
Ç°Ìì°øÍíÎÒ·¢±íÁË¡¶JavaµÄ¿çƽ̨¾ÍÊÇÒ»¾ä»ÑÑÔ¡£¡·£¬Ô±¾¾ÍÊÇÖÜÄ©ÏÐÀ´ÎÞÊ£¬·¢±íһƪÂÔ´øÕùÒéÐԵIJ©ÎÄÈôó¼Ò¶¼À´³³³³¼Ü£¬·¢±í×Ô¼ºµÄ¿´·¨£¬¸ù±¾¾ÍûÏë×ÅË°ÑË´òµ¹£¬Ò»¸öÐÐÒµ»òÕßÊǼ¼ÊõÕóÓªÊÇÎÞ·¨ÓöÌÆÚ¿ÚË®ÕÌ´òµ½¶ÔÊֵģ¬¶øÇÒÎÞÂÛ˵¹Á˶ÔË«·½ÕóÓªµÄ·ÛË¿ÃÇÒ²ÊÇÓк¦ÎÞÒæ¡£
ÎҸоõ¿ÉÒÔ¶¥µ½50Â¥£¬³öºõÒâÁϵÄÊÇ´ó¼Ò¾ÓÈ»·×·×д³ö ......
package java;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.*;
public class fontnameDome extends JFrame implements ActionListen ......
Ëü¿ÉÒÔµ¼Èë¿â£¬µ÷ÓÃÍâÃæµÄ¿âº¯Êý£¬javaÓïÑԾͺܺõĵØÀûÓÃÁËÕâÒ»µã£¬jspÒ²¿ÉÒÔÔÚÍøÒ³Öе÷ÓÃjava±àдºÃµÄ³ÌÐò£¬ÒªÊ¹ÓÃjavabean±êÇ©
struts±¾Éí¾ÍÊǶÔjava¼¼ÊõÒ»¸ö°ü×°,°üÀ¨£¬html,jsp¼°±êÇ©,servlet¡£
hibernateÊDZðÈ˱àдºÃÓ³ÉäÊý¾Ý¿âµÄ¹¤¾ß£¬Æä´úÂ붼ÊÇÓÃjavaÓïÑÔ±àдµÄ£¬Ö»ÊÇΪÁË·½±ãÓû§Ê¹Óã¬Óû§Ö»Òªµ¼ÈëÆä¿â£¬µ÷ÓÃÆ ......