首页 > 建站教程 > dart >  Dart编程实例 - This 关键字正文

Dart编程实例 - This 关键字

Dart编程实例 - This 关键字

void main() {

   Car c1 = new Car('E1001');

}  

class Car {

   String engine;

   Car(String engine) {

      this.engine = engine;

      print("The engine is : ${engine}");

   }

}