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 |
Is there an equivalent to the instanceof operator in visual j++?
why do we use Overloading, Overriding, Boxing, Unboxing, and what is the use of these ?
What is encapsulation in csharp?
What?s the .NET datatype that allows the retrieval of data by a unique key?
What is the purpose of the integer parse method the decimal parse method?
Can you create enumerated data types in C# ?
What does return do in for loop?
What is the main method?
How we can create an array with non-default values?
Why hashtable is thread safe in c#?
What is a template class?
Which types of inheritances does c# support?