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 the meaning of extention?
What is event and delegates in c#?
What is a console application in c#?
What are fields in c#?
What does console mean c#?
In which order the constructor is called for an inherited class?
What is alias in c#?
What is multicast delegate explain with example?
Is c# an open source language?
What are circular references? How garbage collection deals with circular references.
What are the properties of c#?
What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?
Name which controls do not have events?
Why are strings immutable c#?
What is a delegate? How can it works?