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

Give some examples for built in datatypes in c#?

0 Answers  


what r arraylist? what the use of Hashtables?

4 Answers  


What do you mean by abstract class in c#?

0 Answers  


What is lazy t?

0 Answers  


How do you restrict the type which can be used in custom generic?

1 Answers   IBM,






What does it meant to say “the canonical” form of XML ?

1 Answers  


What is the use of "default" and "Using" keyword?

3 Answers   TCS,


What type of data type conversion happens when the compiler encounters the following code?

0 Answers  


Is string a primitive data type in c#?

0 Answers  


What is windows application in c#?

0 Answers  


What is difference between yielding and sleeping?

0 Answers  


What is .dbml file?

0 Answers  


Categories