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


Please Help Members By Posting Answers For Below Questions

What are the difference between structure and class?

560


What is jagged array in vb.net?

637


What do you understand by vb.net?

614


Explain clr?

568


Can you please explain the difference between thread and process?

523






Can you please explain the difference between int and int32?

564


Why do you need Lock in Visual Basic?

613


What is the exact defination of object?

577


What is early binding?

527


What is the advantages of VB.NET?

602


What is the difference between convert.tostring and .tostring() method?

524


What would you do to remove microsoft visual basic name space?

512


What is branching logic control in VB.NET?

573


What is a literal control?

579


What is the use of console application?

580