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

What is the difference between “dispose” and “finalize” variables in c#?

0 Answers  


Are tuples mutable c#?

0 Answers  


Where is the output of TextWriterTraceListener redirected?

1 Answers  


If I have more than one version of one assemblies, then how'll I use old version (how/where to specify version number?)in my application?

0 Answers  


Can bool be null c#?

0 Answers  


What is parsing?

0 Answers  


What is Lambda Expression?

1 Answers  


How do generics work in c#?

0 Answers  


Can we inherit two classes in c#?

0 Answers  


Hello Friends..am Mohammed riyash..final year BCA in Jamal Mohamed College 2009. Trichy. My doubt is while connecting SQL2005 Built in Database withing the Visual Studio 2005 Framework.. I am getting the error.. That " An Error occurred and it may be due to , under the default settings of the Server, the connection cannot be established.." But the code works in MS Access for me.. Both in VB.Net and C#.Net am getting the same error.. Any genius please Message me to 9994558822 or mail me.. riyash.ips@gmail.com

3 Answers  


What is enum in c#?

0 Answers  


How big is a 64 bit integer?

0 Answers  


Categories