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 an arraylist?
Which dll is used for microsoft .net run time?
Define clr?
What is the use of internal keyword?
What is the significance of delegates. Where should they be used?
What is different between web.config and machine.config and where it will be ?
How do you script this scenario in QTP using VB? Verify XML attributes in XML message against XSD and data mapping of fields to Oracle tables? Verify data in XML to data in a defined table?
What is the difference between datagrid and gridview?
what is the need for dynamic controls in vb.net? i would like to know for what purpose should we create the controls dynamically? please give the answer in simple words.
Explain some of the exclusive features which are present in vb?
Explain the advantages of migrating to vb.net?
Explain an assembly and its use?
What are the difference between dispose(), close(), exit(), end()? When do we use them?
Can you please explain the difference between namespace and assembly?
What is strong typing and weak typing?