explain DIFFERENCE BETWEEN CLASS AND MODULE?
Answers were Sorted based on User's Feedback
Answer / ranjith
Both class and module are a collection of methods and
properties. The major difference is that instances can be
created from a class in the form of objects, but not from a
module. The scope of the members of a class is only for the
lifetime of the object, but the scope of the members of a
module exist for the life of the program
Is This Answer Correct ? | 43 Yes | 6 No |
Answer / srinivas
Both class and module are a collection of methods and
properties. The major difference is that instances can be
created from a class in the form of objects, but not from a
module. The scope of the members of a class is only for the
lifetime of the object, but the scope of the members of a
module exist for the life of the program
Is This Answer Correct ? | 22 Yes | 3 No |
Answer / hafiz usman majeed
a module is a source code file containing only collection
of related methods. it cannot be used alone, rather it
should be used in some other program that used there
funtions. it is used as library. whereas a class is
collection of both data and function and can be executed
alone and can be instantiated.
Is This Answer Correct ? | 16 Yes | 9 No |
Give some examples for built in datatypes in c#?
what r arraylist? what the use of Hashtables?
What do you mean by abstract class in c#?
What is lazy t?
How do you restrict the type which can be used in custom generic?
What does it meant to say “the canonical” form of XML ?
What is the use of "default" and "Using" keyword?
What type of data type conversion happens when the compiler encounters the following code?
Is string a primitive data type in c#?
What is windows application in c#?
What is difference between yielding and sleeping?
What is .dbml file?