On Wednesday, February 8, 2017 at 1:20:22 PM UTC+8, mur...@castech.com.tw
wrote:
>
> Interface imposes a set of restrictions on a object, which makes it useful
> in the first place.
> If it doesn't, then you won't be able to replace the type of the object
> assigned to the interface.
> Say, if
Interface imposes a set of restrictions on a object, which makes it useful
in the first place.
If it doesn't, then you won't be able to replace the type of the object
assigned to the interface.
Say, if you change the type of fooModel to something with different fields,
you would have to change a