what is overloading & overriding

Answers were Sorted based on User's Feedback



what is overloading & overriding..

Answer / vishal shah

Overloading is simply the 2 or more than two functions with
different signatures.

Overriding is related with Polymorphism, where virtual
function declared in base class is override in the derived
class with the same name. And compiler during runtime
decide which function to be called based on the object
(Base Class or Derived Class) used to call this function.

Is This Answer Correct ?    12 Yes 0 No

what is overloading & overriding..

Answer / ashish

Overloading is a concept in OOPS where we have a similar
methods of same name but diferent signature.The return type
may be same or different but the signature has to be
different.It is an example of static polymorphism.

Overriding is a conecpt where we have the same method
(signature and return type) both is child class and parent
class. Now why we have the same method ? You will have that
thing happen when you want to add more funtionalities to a
method corresponding to your child class. This is an
example of runtime polymorphism

Is This Answer Correct ?    7 Yes 0 No

what is overloading & overriding..

Answer / akila

depends upon their parameters and functions only

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More C Sharp Interview Questions

How main method is called in c#?

0 Answers  


Is dictionary a collection?

0 Answers  


Can I do things in il that I can't do in c#?

0 Answers  


What is difference between a function and a method?

0 Answers  


Hi to everybody. Lastweek i had taken an interview on c#. They ask what is boxing & unboxing, Masking.Please tell the answer and it is useful for me.

8 Answers  






Enlist some of the properties of a thread class?

0 Answers  


What is difference between variable and property in c#?

0 Answers  


give an example for suspending, resuming, and stopping a thread ?

1 Answers   GCI,


What is jagged array?

0 Answers  


What are the steps to make an assembly to public?

0 Answers  


how to change a value of particular cell in a data grid

3 Answers  


Why do we need to serialize data?

0 Answers  


Categories