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
Explain the types of assemblies in .net?
What does this keyword mean in c#?
How does it work?
What is difference between method overriding and method overloading?
Explain what is copy constructor?
Explain about c# language.
What is decimal in c#?
What are the advantages of properties in c#?
Which are access modifiers available in c#?
Define collections?
Why do we use delegates in c#?
How do you escape a character?
Is string a primitive data type in c#?
Is enum a class c#?
What will be the output of the following code?