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
Post a Comment