c# - Are interfaces data types? -


i viewing tuts+ video titled design patterns in c#. in it, instructor says:

"interfaces contracts. they data types define properties , methods have implement within class."

my question: correct, is, interfaces data types in c#?

from the c# programming guide:

c# strongly-typed language. every variable , constant has type, every expression evaluates value. every method signature specifies type each input parameter , return value.

(...)

you use struct, class, interface, , enum constructs create own custom types.

so yes, interfaces considered first class types in .net world. anyway find term "data type" confusing in context, think saying "type" more correct.


Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -