new Child();new Child(1);
/**
*
*/
package com.mischen.cn;
/**
* @author mischen
*
*/
public class Child extends Parent{
private Child(){
this(1);
System.out.print("B");
}
protected Child(int i){
System.out.print("C");
}
public static void main(String[] args) {
new Child();//ACB
new Child(1);//AC
}
}
class Parent{
public Parent(){
System.out.print("A");
}
}
相關文章
- TNS Listener Hang, New Child Listener Process Forked
- Intermittent TNS Listener Hang, New Child Listener Process Forked [ID 340091.1]MIT
- 【JAVA】Java中 File f=new File(String parent ,String child)Java
- CSS3偽類選擇器:nth-child()(nth-child(odd)/nth-child(even))CSSS3
- 前端常見bug系列1:容易被誤解的:last-child和:first-child前端AST
- jQuery :only-childjQuery
- jQuery :nth-child()jQuery
- jQuery :first-childjQuery
- jQuery :last-childjQueryAST
- 課程:A New History for a New China, 1700-2000: New Data and New Methods, Part 1
- CSS E:first-childCSS
- CSS E:last-childCSSAST
- CSS E:only-childCSS
- jQuery :nth-last-child()jQueryAST
- New start new hope!
- Out of memory: Kill process 2249 (nginx) score 1 or sacrifice childNginx
- css child選擇器妙用CSS
- CSS E:nth-child(n)CSS
- jQuery parent>child選擇器jQuery
- new self()與new static()
- Git bash Error: Could not fork child process: There are no available terminals (-1)GitErrorAI
- 在nodejs中建立child processNodeJS
- CSS E:nth-last-child(n)CSSAST
- shared SQL,parent cursor,child cursorSQL
- New
- JavaScript中的new map()和new set()使用詳細(new map()和new set()的區別)JavaScript
- 首頁new wj v1
- Thread 1 cannot allocate new logthread
- css 中 nth-child、first-child、last-child 的使用(選中第一個,第幾個,第幾個到第幾個,最後一個等)CSSAST
- 理解new和實現一個new
- new learn
- A New Start
- placement new
- new code
- the new start
- in place new
- Oracle10g New Features(1)Oracle
- :first-child與:first-of-type 區別