explain DIFFERENCE BETWEEN CLASS AND MODULE?

Answers were Sorted based on User's Feedback



explain DIFFERENCE BETWEEN CLASS AND MODULE?..

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

explain DIFFERENCE BETWEEN CLASS AND MODULE?..

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

explain DIFFERENCE BETWEEN CLASS AND MODULE?..

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

Post New Answer

More C Sharp Interview Questions

Is there an equivalent to the instanceof operator in visual j++?

0 Answers  


why do we use Overloading, Overriding, Boxing, Unboxing, and what is the use of these ?

3 Answers   eXensys,


What is encapsulation in csharp?

0 Answers  


What?s the .NET datatype that allows the retrieval of data by a unique key?

3 Answers  


What is the purpose of the integer parse method the decimal parse method?

0 Answers  






Can you create enumerated data types in C# ?

1 Answers  


What does return do in for loop?

0 Answers  


What is the main method?

0 Answers  


How we can create an array with non-default values?

0 Answers  


Why hashtable is thread safe in c#?

0 Answers  


What is a template class?

0 Answers  


Which types of inheritances does c# support?

0 Answers  


Categories