What is difference between Method and function
Answers were Sorted based on User's Feedback
Answer / owais ahmed
The major difference between
methods and functions is that methods called by the
reference variables
called objects where as the functions do not having any
reference
variables.methods are invoked using objects.wheres as in
case of functions here is no quesion of objects.we call it
directly
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / jacintha
A function is just a part of code that executes code and
can return
something. A method is, in OOP, a function that is bound to
a class. As
in C# there are no stand-alone functions, every function in
C# is a method.
| Is This Answer Correct ? | 5 Yes | 4 No |
what r arraylist? what the use of Hashtables?
What are the advantages of constructor?
can we throw execption from catchblock
Explain the ways to deploy an assembly?
What does return do in for loop?
Can you use all access modifiers for all types?
What is use of hashtable in c#?
Explain the role of the datareader class in ado.net connections?
What?s an abstract class?
Write one code example for compile time binding and one for run time binding? What is early/late binding?
Why do we need constructors?
how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)