In c#, we have interfaces. Where did these come from? They didn’t exist in c++.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Interfaces are pretty old, and have been around for quite a while.
Early (mid to late late 1970’s) non-object oriented languages such as Modula and Euclid used constructs called ‘modules’ to specify the interfaces between components. Components would then communicate with each other via explicit importing and exporting modules. Interfaces in C# are object oriented evolutions of that same concept.
Interfaces in C# directly extend from the concept of interfaces in C++ (and Java), where they were used as part of COM for describing object-oriented component interfaces.
EDIT: In doing a small amount of research, the earliest language I could find with an explicit ‘interface’ keyword was Modula-3, a derivitive of Modula created around 1986.