L
Laserson
Hi! I can't understand what difference between modules and classes in VB.NET
project?
project?
project?
Laserson said:I can't understand what difference between modules and classes in VB.NET
project?
A module is really just a shorthand for a Friend,
an implicit private constructor to avoid
instantiation.
No - if you specify "Public" it still can't be accessed outside of the
project - so for modules "Public" means the same as "Friend".
(Unless Microsoft has changed this for 2005...?)
Interesting discussion...I learn something everyday. While reading this
string of notes, it came to me that a lot of people on this newsgroup
often
recommend using a class instead of a modules Since a module is really a
class without a constructor where public functions, subs, and variables
are
shared, why the mindset against modules?
--
The one wrinkle is that VB lets you access the members without
qualification
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.