What is the Difference between imperative and interrogative
code?
Answer Posted / nayana
Some methods return values or provide information back to
the calling code. These are called interrogative methods.
Others, called imperative methods, just perform a service
and return nothing to the calling code.
In VB.NET, methods are implemented using Sub (for
imperative methods) or Function (for interrogative methods)
routines within the class module that defines our object.
Sub routines may accept parameters, but they don't return
any result value when they are complete. Function routines
can also accept parameters, and they always generate a
result value that can be used by the calling code.
| Is This Answer Correct ? | 26 Yes | 1 No |
Post New Answer View All Answers
Suppose two interfaces have same method, so how will you implement these methods in derive class?
How many destructors can a class have?
What is using in c#?
What do you use c# for?
How will you deploy the dll file in gac?
What is a cshtml file?
Are c# constructors the same as c++ constructors?
What is getenumerator?
What is a long in c#?
What is an array? Give the syntax for a single and multi-dimensional array?
What is an assembly in .net?
Are c# strings null terminated?
Explain how do you directly call a native function exported from a dll?
What is parse method in c#?
What is gridview c#?