Is there a way to dynamically add constraints in Scala?

前端 未结 0 554
[愿得一人]
[愿得一人] 2020-12-10 17:53

I\'m trying to simulate a bakery that accepts online orders from customers.

For this I have 4 classes:

  • Customer:
    • age
    • money
    • gen
相关标签:
回答
  • 消灭零回复
提交回复
热议问题