Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
There are multiple classes with the name 'function':
A function (in general) is a callable piece of code that performs a specific general task with as little information as possible (Why would you want this? Go to this page to view the purpose of using functions).
There are multiple types of functions:
A function declaration states what a function needs and returns. A function definition states how a function uses its arguments and calculates what to return.
#include <iostream> |
A function that accompanies a class (and is non-friend) is called a free function.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.