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

Explain the components of common language runtime.

756


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

743


List the types of generations in garbage collector?

681


What are the various open source tool available for VB.NET?

746


described weak typing?

774


What is multiple form in vb?

625


What is an assembly and its use?

737


Explain the difference between int and int32?

691


Explain and brief about rapid application development tool?

761


Explain namespace?

757


Explain the difference between web.config and machine.config and where it will be ?

692


What do you mean by serialization?

730


What is the differnce between managed code and unmanaged code?

730


difference between control and component more than one differences

2645


Define manifest?

742