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
Can the accessibility of a type member be greater than the accessibility of its containing type?
Can you prevent a class from being instantiated?
What is reflection in c#?
Why we use get set property in c#?
Can we have static indexer in c#?
What is default value of bool in c#?
What does m mean in decimal c#?
What are the types of comment in c# with examples?
What is hashmap in c#?
What is int64 in c#?
Is constructor a static method?
How to find the current application file path while runtime?
How do you declare a method in c#?
What are some of the commonly used commands in sqlcommand?
How do I join one form to another in c#?