1.JSPä¸Severletçèç³»ä¸åºå«
JSPä¸Severletçèç³»ä¸åºå«
源码vb 构造图源码1ï¼å¸®å©ææ¡£ï¼å³ç±»ãæ¥å£ä½¿ç¨è¯´ææ件ã
源码vb 构造图源码2ï¼æé å½æ°å¯ä»¥å¤ä¸ªã
源码vb 构造图源码3ï¼ä¾èµæ³¨å ¥ãç¨ç½è¯è®²ï¼æ¯æéè¿é ç½®æ¹å¼ï¼ç»ä½¿ç¨ç±»ä¸ä¸ªå建好çç±»ï¼æ®éæ åµæ¯ç¨æ·èªå·±newï¼ãå¯ä»¥éä½è¦å度ï¼æé«å¯æ©å±æ§ï¼ä»èå®ç°ä¸ä¿®æ¹æºç ä¿®æ¹ä¸å¡ã
源码vb 构造图源码4ï¼ç®å举ä¾ï¼class A {
源码vb 构造图源码private B bï¼
源码vb 构造图源码public B getBï¼ï¼{
源码vb 构造图源码return b;
源码vb 构造图源码}
源码vb 构造图源码public void setB(B b1){
源码vb 构造图源码this.b = b1;
源码vb 构造图源码}
源码vb 构造图源码//使ç¨B
源码vb 构造图源码public void useBï¼ï¼{
源码vb 构造图源码b.æ¹æ³();
源码vb 构造图源码}
源码vb 构造图源码}
源码vb 构造图源码é ç½®æ³¨å ¥ä»¥åï¼ç´æ¥è°ç¨açuseBï¼ï¼ã
源码vb 构造图源码å¯è§A类代ç é没æå建Bç±»å对象ãBé常为æ¥å£ç±»åï¼éè¿é ç½®ä¸åçB对象ï¼å°±å¯ä»¥å®ç°çµæ´»çä¸å¡åæ´ã
源码vb 构造图源码