Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. void main() {
  2. Car myCar = Car(carStyle: TipeMobil.sport);
  3. }
  4.  
  5. class Car {
  6. TipeMobil carStyle;
  7. Car({this.carStyle});
  8. }
  9.  
  10. enum TipeMobil {
  11. convertible,
  12. SUV,
  13. sport,
  14. hatchback,
  15. coupe,
  16. limo,
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement