What is the Difference between Overriding and overloading?
Answer Posted / prachee
overloading has same method but different types of
parameters, number of parameters.
overloading does not take return type to differentiate
overloaded method.
ex:
int add(int a, int b)
int add(float a , float b)
are overloaded methods
overriding comes with inheritance concept.
here parent and child both contains the same method. and
when execution takes place; child's method is called.
| Is This Answer Correct ? | 124 Yes | 14 No |
Post New Answer View All Answers
What is the difference between datagrid and gridview?
write a program to develop a graphic user interface application of marks book with students names and their names.the program should show the following options main menu,add student details,display student details,maximum mark and minimum mark.
What is the difference between static or dynamic assemblies?
Sir, what code to store data from vb net sql server 2008 to 2005 and at the same time in order to validate the data entered is not the same, but there have been contacts in the module. Examples such as the log table that I created, the user name as the primary key.
Explain i.tostring method?
Explain how the .net framework performs automatic memory management.
What are nested classes?
What is meant by jagged arrays?
what's ArrayList in .Net (VB.Net or C#).What's the advantageous using ArrayList.
What is the Advantage of vb.net over vb
How can we remove handlers at run time?
How many languages are supported by .net?
Why is the xml infoset specification different from the xml dom?
What are jagged arrarys ?
What is pre-jit?