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 new method in c#?
Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?
Can we instantiate abstract class in c#?
Is collection a data structure?
Why do you need boxing in c#?
What is the difference between static and private constructor?
What is a satellite assembly in c#?
what is uniary operators and binary operators and what is the difference
What is the use of ispostback in c#?
If I have code like try { return; } catch { return; } finally { return; } from which block will the value will be returned. and try has been executed without any error.
How do you create multiple inheritance in C#?
5 Answers Infosys, KenIndia, Microsoft,
Can we make a Static Constructor Parameterized? Give Reason with your answer
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)