0

I am wondering what is best condition to use interface instead of inheritance in c#.

Danish XII
  • 13
  • 3
  • 2
    usualy you inherit and implement interface. What's your question then? – teo van kot Nov 24 '16 at 13:04
  • Not quite sure what the point is of the question, but if I should try to answer it, I'd say that interface is what your class can do, and inheritance is what your class is. – Scherling Nov 24 '16 at 13:11
  • @scherling, I'm working on a game where i have three state 1, state 2, state 3.All are relate to each other.So what is best way to communicate these three state ,Using inheritance or Interface? I think you got my point – Danish XII Nov 24 '16 at 13:46

0 Answers0