ufcpp/UfcppSample

"base" からの継承

Closed this issue · 1 comments

https://ufcpp.net/study/csharp/start/st_scope/?p=3
「コンストラクター初期子」の解説のコードのところで

class Derived : base
{

とありますが、 継承元に小文字 base は指定するとエラーになりました。
このようなコードでは如何でしょう。

class Base { public Base(out int a) { a = 0; } }
class Derived : Base
{
    public Derived(int a) : base(out var x)
    {

修正。