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
Name the class which allows an element to be accessed using unique key?
Explain cls?
Can we use Vb.Net and C# language simultaneously in one .Net application?
i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?
What is the maximum size of the textbox?
What are the types of generations in garbage collector?
What do you mean by option strict on?
Explain some of the exclusive features which are present in vb?
What is public assembly?
Which class allows an element to be accessed using unique key?
Explain the difference between web.config and machine.config and where it will be ?
What is vb.net used for?
Explain about the keyword must inherit?
how to deploy vb.net with key and evaluation time? any one can help me?
What is the difference between c# and vb.net?