- A block of code in a contract which manipulate the state variable.
- e.g
contract Calculator {
int val = 0;
function add(int _val) public {
val += _val
}
function get() public view returns (int) {
return val
}
}
- here, two fun add and get are created.
- both have public keyword so it can be access by the end user.
- the get function contains view keyword which mean that func does not change the state variable and it doe snot req any gas fees.

Returning Multiple Values
function test() public view returns (uint, bool, string memory){
return (1, true, "hello")
}