How can you overload a method?

Answer Posted / swapna

we can overload a method by giving same method names with
different parameters. Parameters may differ in data type or
in number.
This is called method overloading .

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The int maps to which C# keyword in .NET type?

841


Explain streamreader/streamwriter class?

719


What is the difference between const and static read-only?

685


What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?

812


How do I create a multilanguage, single-file assembly?

702


What is class and object c#?

666


What is the main usage of keyword “virtual” ? How does it work for a method or property?

714


What is a generic in c#?

683


What is gac? What are the steps to create an assembly and add it to the gac?

698


Is stringbuilder faster than string concatenation c#?

681


What are the 4 pillars of any object oriented programming language?

656


Can a constructor have a return type?

689


Which framework is best for desktop application?

713


Can hashtable have duplicate keys in c#?

638


What is the difference between finalize() and dispose() methods?

761