Better Way to Assign a Lot of Readonly Values in a Class?

前端 未结 0 863
醉梦人生
醉梦人生 2021-01-04 07:42

I want a class and not an interface so that I can have methods. I want everything public to be read-only for immutability. Is there a way to do the following without writing

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