Saved Bookmarks
| 1. |
How To Create An Example Of This Keyword In Dart? |
|
Answer» In DART, the FOLLOWING code is used to create an EXAMPLE of this keyword. void MAIN() { Car c1 = NEW Car('M2001'); } class Car { String engine; Car(String engine) { this.engine = engine; print("The engine is : "); } } In Dart, the following code is used to create an example of this keyword. void main() { Car c1 = new Car('M2001'); } class Car { String engine; Car(String engine) { this.engine = engine; print("The engine is : "); } } |
|