What is difference between overloading and short circuiting?



What is difference between overloading and short circuiting?..

Answer / Asheesh Saxena

Overloading refers to providing multiple methods with the same name but different parameters within a class in C#, allowing you to create multiple methods that perform similar tasks but take different arguments. Short-circuiting, on the other hand, is a feature of C#'s logical operators (&& and ||) that allow evaluation to stop early if the result can be determined by evaluating just one of the operands.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What does the keyword virtual mean in the method definition?

2 Answers  


What are methods in C#?

1 Answers   Winsol Solutions,


How?s the DLL Hell problem solved in .NET?

1 Answers   Visual Soft,


What is method in c#?

1 Answers  


What is sorting in c#?

1 Answers  


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

1 Answers   GCI,


What is callback in c#?

1 Answers  


List out two different types of errors in c#?

1 Answers  


What is the difference between virtual method and abstract method?

1 Answers  


Can constructor be protected in c#?

1 Answers  


Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?

1 Answers   HCL,


What is foreach loop in c#?

1 Answers  


Categories