Answer the question
In order to leave comments, you need to log in
When to use type and when to use interface (not including technical details and syntax)?
What is the difference between an interface ( interface ) and a type ? In differences in syntax and other tech. I figured out the details, but I didn’t really understand when to use what. From the guesswork, only that when we want to describe some type, and this type is an object, it would be better to use an interface.
Answer the question
In order to leave comments, you need to log in
If you need to use an object then an interface, if you need to create then a class. This is if you completely exaggerate.
Here is a good article
https://weblogs.asp.net/dwahlin/the-role-of-interf...
Well, a simple interpretation, and the first one is more understandable, this is an interaction point, an
Interface
a point where two systems, subjects, organizations contract , etc. meet and interact.
the interface between accountancy and the law
2
COMPUTING
a device or program enabling a user to communicate with a computer.
a graphical user interface
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question