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 |
What is the difference between “dispose” and “finalize” variables in c#?
Are tuples mutable c#?
Where is the output of TextWriterTraceListener redirected?
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?
Can bool be null c#?
What is parsing?
What is Lambda Expression?
How do generics work in c#?
Can we inherit two classes in c#?
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
What is enum in c#?
How big is a 64 bit integer?