What is the Difference between Overriding and overloading?
Answer Posted / nazrul
overriding->
1) method should be public.
2)it need inheritance.
3)it need virtual keyword before it declartion.
4)it have same name with same parameter in diffrent class.
5)it require non-static method.
6)method should have same datatype.
Overloading->
1)method can be different access speicifier.
2)it doesn't need inheritacne.
3)all method should be in same class.
4)method can have diffrent datatypes
| Is This Answer Correct ? | 88 Yes | 8 No |
Post New Answer View All Answers
What is a preprocessor directive in vb.net?
What are the differences between server-side and client-side code?
What is the difference between .dll extension and .exe extension files?
Can you please explain the difference between int and int32?
What is the significance of delegates. Where should they be used? What are the situations where we require them?
Which is the base class for all the classes in .net framework?
What are the features of c# which are not present in vb.net?
What are the advantages of vb.net and c#?
What are option strict and option explicit?
What do you mean by serialization and deserialization and it's use.
What is break mode? What are the options to step through code?
What do you mean by deserialization?
Tell us how many languages are supported by .net?
Write a program to find all text files in a logical drive and return the count of the number of files?
Explain an assembly?