How can you overload a method?- When two or more members in a type are the same kind of member and have the same name and different parameter list, the member is said to be overloaded. - Methods have different parameter list, different parameter datatype or the return type. - Overloaded members should provide variations on the same functionality. - It supports common scenarios by passing default values to the complex overloads.
|
Test cases in unit testing - C#.NETC#.NET - What are three test cases you should go through in unit testing? - Positive test cases (correct data, correct output), negative test cases (broken or missing data, proper handling)...
25 C#.Net Interview Questions for FreshersC#.Net interview questions for freshers - What is an internal modifier?, What are namespaces, and how they are used?, Why are strings in C# immutable?, What is boxing?, How does C# differ from C++?...