What is difference between method and function in c#?



What is difference between method and function in c#?..

Answer / Vibha Mishra

In C#, a method is a member of a class or a static class. It has an access modifier (like public), a return type (like void), a name, and parameters. A function, on the other hand, is a standalone block of code that can be called by another program.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is a pre-requisite for connection pooling?

2 Answers  


How can an inner class access the members of outer class?

1 Answers   Changepond,


what is difference between destruct or and garbage collection ?

1 Answers   Wipro,


Explain the serialization in .net

1 Answers  


What is expandoobject in c#?

1 Answers  


What is the difference between struct and class c#?

1 Answers  


What is list array in c#?

1 Answers  


Does c# support templates?

1 Answers  


What is the difference between delegates and superdelegates?

1 Answers  


In a memory when you Box and Unbox a value-type what happens?

1 Answers   Siebel,


Explain async and await?

2 Answers  


When Doveloped C#

2 Answers  


Categories