Simple Function & Parameterized Functions Minimum Theoretical Background The Function statement is used to declare the name, parameter and the body of a function. A Function returns a value. It uses a special syntax form in the VB.NET language. The Function has one or more parameters—these are called formal parameters. A Function is part of a Module, Class or Structure.
The syntax for the Function statement is:
[Modifiers] Function FunctionName [(ParameterList)] As ReturnType [Statements] End Function
Modifiers: specify the access level of the function; possible values
are: Public, Private, Protected, Friend, Protected Friend and information regarding overloading, overriding, sharing, and shadowing. FunctionName: indicates the name of the function
ParameterList: specifies the list of the parameters
ReturnType: specifies the data type of the variable the function
returns. EXP-13_A Implement a program for recursion using a function. RESULT:- Hence we have successfully performed the practical using Simple Function & Parameterized Functions. EXP-13_B Write a program to identify maximum number using parameterized function. ( Use a two Textbox for input a integer number and display output in Message Box ) RESULT:- Hence we have successfully performed the practical using Simple Function & Parameterized Functions.
Python Advanced Programming: The Guide to Learn Python Programming. Reference with Exercises and Samples About Dynamical Programming, Multithreading, Multiprocessing, Debugging, Testing and More