When to use Interface variable vs implementation variable

后端 未结 0 505
北恋
北恋 2021-01-21 23:24

I\'m new to JAVA coming from C++. What is the difference between assigning an implementation to an interface variable vs the actual implementation variable?

Foo f = new F

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