programming:継承時のコンストラクタ呼び出し
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン | |||
| programming:継承時のコンストラクタ呼び出し [2017/08/09 04:45] – dot | programming:継承時のコンストラクタ呼び出し [2017/08/09 04:48] (現在) – dot | ||
|---|---|---|---|
| 行 4: | 行 4: | ||
| <code sh> | <code sh> | ||
| $ dotnet run | $ dotnet run | ||
| - | This is SuperClassSample Constructor.Argument is 1 | + | This is SuperClassSample Constructor.Argument is 1234 |
| This is ChildClassSample Constructor. | This is ChildClassSample Constructor. | ||
| </ | </ | ||
| 行 36: | 行 36: | ||
| { | { | ||
| // we need " | // we need " | ||
| - | public ChildClassSample() : base(1) | + | public ChildClassSample() : base(1234) |
| { | { | ||
| Console.WriteLine(" | Console.WriteLine(" | ||
programming/継承時のコンストラクタ呼び出し.1502253910.txt.gz · 最終更新: by dot
