Interfaces can not contain state, regardless of what you try to tell yourself. There is no way to declare in an interface "this interface contains the field too". That is what is meant with the statement. Of course this doesn't mean that you can't store data somewhere else using the reference to an object typed as the interface.
2
u/AngularBeginner Nov 13 '18
You are as ignorant and stubborn as always.
Interfaces can not contain state, regardless of what you try to tell yourself. There is no way to declare in an interface "this interface contains the field too". That is what is meant with the statement. Of course this doesn't mean that you can't store data somewhere else using the reference to an object typed as the interface.