Programming: Reusable Code Explained
Share
Reusable code is code that is written once, but used multiple times. The code is written as a function or class and the program calls this function. The function can have parameters that are passed in to behave in a unique manner. A function can also return data back to the caller and stored in a variable.