What is the Difference between Overriding and overloading?
Answer Posted / m.usama
Overloading:
1.Methods having same name with different number of
parameters or different data type with same number of
parameter..
2. It is possible that overloading in inheritance..
Overriding:
1.The method in the derived class the has the
same name and same parameters in the base class and it
changes the behavior or functionality of the method in the
derived class,with overriding single reference of method is
created in memory of override function ..
2. Must be public.
3. possible in inheritance.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How many ways the function can return values?
Explain global assembly cache (gac)?
Explain about jagged arrarys ?
When do you use virutal keyword?
What’s the difference between private and shared assembly?
What is tracing?
What is the strong name in .net assembly?
What is the use of internal keyword?
Explain the differences between vb.net and c#, related to oops concepts?
How do you define a read only property in a class module?
Write the role of new keyword?
What is the difference between import system.data.sqlclient and system.data.oledb?
What is a static variable?
What is difference between import system.data.sqlclient,system.data.oledb?
Tell me which namespace are used for accessing the data?