Professional Documents
Culture Documents
OBJECT ORIENTED
PROGRAMMING
MEHREEN TAHIR
Functions
• Perform specific task
• Reusability
Functions
• Prototype
• Definition
• Call
Functions
• Local and global variables
• Built in functions
• User defined functions
Functions
• Passing arrays to functions
• Function overloading
• Function signature
– A function's signature includes the function's name and
the number, order and type of its formal parameters.
– Two overloaded functions must not have the same
signature.
– The return value is not part of a function's signature.
Functions
• int Divide (int n, int m)
• double Divide (int n, int m)
• float Divide (int x, int y)