Prevention of a client from directly instantiating my concrete classes

后端 未结 0 388
一整个雨季
一整个雨季 2021-01-14 15:24

How would you prevent a client from directly instantiating your concrete classes?

For example, you have a Cache interface and two implementation classes MemoryCache a

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