What is the Difference between Overriding and overloading?
Answer Posted / dev man
Overloading->
1) Same name, different parameter list or types of parameters.
2) Sub class method can overload a superclass method.
3) Method be different access specifier.
4) It doesn't need inheritance.
5) All method should be in same class.
6) data types can be different.
7) Return type can be different.
ex:
int add(int a, int b)
int add(float a , float b)
are overloaded methods
overriding->
1) Method should be public.
2) It needs inheritance and virtual keyword
3) It needs virtual keyword before it declaration.
4) Method must have same name with same parameter in
different class.
5) It requires non-static method.
6) Method should have same data type.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
So you know which dll is used for microsoft .net run time?
Explain about the keyword must inherit?
Explain option explicit?
How to view an assembly?
Explain the difference between system.string and system.stringbuilder classes?
Explain the difference between value and reference types?
What is sealed class?
What is private assembly?
Why do we use ansi keyword?
What is the advantages of VB.NET?
What is break mode? What are the options to step through code?
hello thank you for replying to my question regarding adding barcode fonts in vb.net project. I have downloaded a free font and added in my vb.net project but now i dont know how to use that i need to generate barcodes can any body help me how to use those fonts these are font3of9 .i need a small code to use these fonts to generate barcode thank u!
how to get dynamic control array position or its index position?
Name a feature which is common to all .net languages?
Explain the components of common language runtime.