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
What is a Assembly?
Can delegates be used as callbacks?
Why do we use reflection in c#?
What is sealed class in c#?
How main method is called in c#?
What is a clr host?
What is arraylist c#?
Can fields inside a class be virtual?
Why we use methods in c#?
What are abstract classes in c#?
What is the implicit name of the parameter that gets passed into the class set method?
Distinguish between array and arraylist in c#?
To whom a method is accesssed if it is marked as protected internal ?
Explain boxing and unboxing in c#?
Should I use double or float?