What is method and function in c#?



What is method and function in c#?..

Answer / Purnanand Gupta

In C#, both 'method' and 'function' refer to blocks of code that perform specific tasks. A method is a member of a class and can access any members of the class, while a function (technically called 'method') outside a class is referred to as a global method or a static method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Describe the ways of cleaning up objects in c#.

1 Answers  


What is an assembly in .net?

1 Answers  


What are extensions in c#?

1 Answers  


Can we have multiple threads in one app domain?

1 Answers  


What are the boolean data types in c#?

1 Answers  


Why we use get and set method in c#?

1 Answers  


Explain About sn.exe

1 Answers  


what is a delegate? what it is used for?

13 Answers   Choice Solutions, TCS,


How do I simulate optional parameters to com calls?

1 Answers  


Is java better than c sharp?

1 Answers  


How to use reflection to call generic method?

1 Answers  


Can I use parseint?

1 Answers  


Categories