Ive just started year three of my computing degree and have been looking through the course material. My application development module is based around c#. Throughout the material the lecturer refers to what I know to be called ‘methods’ as ‘functions’. I am aware that the term ‘functions’ is used (for example) c++ for as code block but I thought that OOP used ‘method’ to distinguish between the two different types of programming.
So, are the two interchangeable or should the lecturer be using the term ‘methods’?
The C# 3.0 spec says
And of course "anonymous functions" are called by exacly that term. The phrase "function member or anonymous function" occurs a lot in the spec, there apparently being no accurate shorter way to say "lump of executable code".