Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main() {
- Car myCar = Car(carStyle: TipeMobil.sport);
- }
- class Car {
- TipeMobil carStyle;
- Car({this.carStyle});
- }
- enum TipeMobil {
- convertible,
- SUV,
- sport,
- hatchback,
- coupe,
- limo,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement