what is overloading & overriding
Answers were Sorted based on User's Feedback
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 |
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 |
Perfect Example Of While And Do-While Loop In C#.Net ?
What is using in c#?
Explain how can you clean up objects holding resources from within the code?
What is the difference between dynamic type variables and object type variables in c#?
Is lazy t thread safe?
What is property c#?
Explain briefly the difference between value type and reference type?
What is type class in c#?
Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards
What is the size of a decimal?
Is IIS is required for installing the deployment of windows C#.netapplication and to run.
What are verbatim strings in c#?