difference b/w class and module in vb.net

Posted by Shanky11 under VB.NET on 2/25/2013 | Points: 10 | Views : 960 | Status : [Member] | Replies : 2
what is the diff between class and module


in vb.net




Responses

Posted by: Murugavelmsc on: 2/25/2013 [Member] Starter | Points: 25

Up
0
Down
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.

Regards,
Murugavel S
murugavel.sadagopan@gmail.com
http://murugavelmsc.blogspot.in/

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sakthi.Singaravel on: 2/25/2013 [Member] Silver | Points: 25

Up
0
Down
Class---used to write private and public methods..
Module---Public or friend

Regards,
Singaravel M

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response