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 toint32 c#?
Which is the best institute in hyderabad to learn Sharepoint Portal?
Using system; class main { public static void Main() { int a = 1; for (int i = 0; i < 10; i++) { int j = a * 5; Console.WriteLine(a + "*5=" + j); a++; } Console.ReadLine(); } }
What is desktop application testing?
What can be done with c#?
What is the default boolean value in c#?
What is #region in c#?
Can we have 2 main methods in c#?
Are c# constructors the same as c++ constructors?
What is the default value of datetime in c#?
What is int32 in c#?
Where is the main method in c#?
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)