// Dart语言构造函数
void main() {
Car c = new Car('E1001');
}
class Car {
Car(String engine) {
print(engine);
}
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266194.html
// Dart语言构造函数
void main() {
Car c = new Car('E1001');
}
class Car {
Car(String engine) {
print(engine);
}
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266194.html