answersLogoWhite

0


Best Answer

In object-oriented programming (OOP), programmers can create virtual copies of objects from schematics called classes. Classes contain variables of data and methods that can perform tasks with the object or other objects. For a real-world example, a class called "cook" might have variables containing various cooking times and methods for chopping vegetables. Methods can accept data input and provide data output. When a method is programmed to accept different types of data for different occasions, this is called "overloading" a method.

Overloading provides an easy way for methods to keep the same name but allow for different inputs. At compiling time, the application evaluates the input data and chooses which overloaded method to use. By overloading methods, a programmer can also keep a single name for a method despite type differences, which cleans up the code.

How to Overload a Method

Overloading a method in visual basic requires the addition of the keyword "Overloads" into the method definition. The keyword is placed in between the visibility call (i.e. public or private) and the function call (e.g. Public Overloads Function). Each different function definition must have the same name and a different number or type of input variable.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is method overloading in vb net?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a difference between dotnet and VB?

Nothing, as VB is now part of .Net. .Net contains following main languages: - C# - VB However, VB 6 was before .Net and was independent. dotnet is a framework that supports multiple languages and vb is one the language supported by dotnet.


What are the types of Dot-net?

totally there are 3 types C # Asp dot net Vb dot net


Is constructor overloading same as method overloading.yes or no. explain?

yes,because in constructor overloading constructor have same and different parameter list. In method overloading method have same name and different parameter list.


What is meant by vb net framework?

Vb(visual basic) is the language support by a .Net framework.we can use the vb as a windows application and web application and use the many application we can create.


How the compiler compiles overloaded method?

method overloading occurs when we use two functions or more with the same name.In function overloading compiler detect which method is call actually throw the parameters passed to the methods.In function overloading parameters of functions are different.


Differene betwee constructor overloading same as method overloading?

A constructor is just a special form of a method. You can overload constructors in the exact same way as you can overload any other method.


What should you study first java or vb or net?

Java


What is a list of net supported languages?

C#, vb, j#


VB Net Common Control And Its Properties?

common controls and its properties


What is method overriding and overloading in java?

Overloading is the means by which we can provide two or more different definitions of the same method in the same namespace. Overriding is the means by which a derived class may redefine the meaning of a base class method.


What is advantage of overloading main method?

Practically speaking, there is no advantage in overloading the main method because, eitherways the main method of the current class only gets executed and not any of the parent classes, the current class might extend.


What is Job description of VB net developer?

job description of vb.net developer