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

For read-only operation which property you have to designated?

0 Answers   Siebel,


Why c# is type safe?

0 Answers  


What does the This window show in the debugger?

2 Answers  


Can you declare struct members as protected?

0 Answers  


Who benefits from ajax?

0 Answers  






Will the following code compile and run?

0 Answers  


what is IComparable

0 Answers   Wipro,


What are access modifiers used for?

0 Answers  


What is the difference between method parameters and method arguments. Give an example?

0 Answers  


Can mvc be used for desktop applications?

0 Answers  


Which is the base class in c#?

0 Answers  


Hi!!! my question is how we can apply or do Themes in C#.NET? please any sample or website from where i can get the answer.

1 Answers  


Categories