What is "Polymorphism" and what are Polymorphism in VB.Net?
Answers were Sorted based on User's Feedback
Answer / kalpana
Polymorphism is one of the crucial features of OOP. It
means "one name, multiple forms". It is also called as
Overloading which means the use of same thing for different
purposes. Using Polymorphism we can create as many
functions we want with one function name but with different
argument list. The function performs different operations
based on the argument list in the function call. The exact
function to be invoked will be determined by checking the
type and number of arguments in the function.
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / rupali
Polymorphism is ability for redefining methods for derived
classesin OOPs.
its of two types:
1.Compiletime : Method overloading
Methods with same name but diff signatures.
Example:
Public class Calculation
public overloads sub Add(x as integer,y as integer)
return x+y
End Sub
Public overloads sub Add(x along,y as long, z as long)
return x+y+z
End sub
End class
2.Runtime :Method Overriding
Two or more methods with same name,same signatures but with
different implementations.
Example:
Public class DrwingObject
Public Overridable function Draw() as String
return "i am in generic object"
End functin
End class
Public class Line inherits DrawingObject
Public overrides functin Draw() as string
return " i am line"
End Function
End class
| Is This Answer Correct ? | 2 Yes | 0 No |
What is the class that allows an element to be accessed using unique key?
How do you validate Date by using which validation Control?
What is strong name in .net assembly?
What is intermediate language in .NET ?
20 Answers Digital GlobalSoft,
Write a program that accepts an array of numbers and a number, and return a string “Yes” if the number is found in the array, “No” if the number is not found in the array.
How do you call a stored procedure in Visual Basic?
What is trace in vb.net?
What is an application domain? how they get created?
Name the two main parts of .net?
visual basic 6.0 hava print statement for printing on form.what is the alternative for this in vb.net?
Name the tool which can convert visual basic old version to .net compatibility version?
In Datagrid after adding row, how you will assign the value for each cell to currently added new row?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)