void main() {
Car c1 = new Car('E1001');
}
class Car {
String engine;
Car(String engine) {
this.engine = engine;
print("The engine is : ${engine}");
}
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266196.html