📜  dart super - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:03.555000             🧑  作者: Mango

代码示例1
class Foo {
  Foo(int a, int b) { /*...*/ }
  Foo.named(int c, int d) { /*...*/ }    // named constructor
}
class Bar extends Foo {
  Bar(int a, int b) : super(a, b);
}
class Baz extends Foo {
  Baz(int c, int d) : super.named(c, d);  
}