0
Why we doesn't use variables in interfaces?
3 Réponses
+ 3
Because interfaces are contracts, it only represent behavior.
+ 1
You can use properties. Why do you need variables which could be accessed from other classes?
0
There's no reason to. If you really need something similar that uses a variable, just use a normal abstract class.
Also it's don't, not doesn't.