I was quickly curious what the difference between a class, a structure, and a module is in Visual Basic .Net in relation to C++.
Is a Structure truly a struct like in C, or is it essentially a class with all members defaultly public? And what is the point of a Module (I used one back in the day with VB6, but have read they have major speed issues--and why are they inefficient?).
How do these three fit in with each other in relation to Polymorphism? Can I inherit a Module from a Class or vs versa?
I've found it's quite hard to find documentation in MSDN on things like this, and googling hasn't gotten me far. And I hate to start up a new thread on such a fundamental/easy question...
I am basically interested in knowing features one may have over another. And if anyone knows of how to do a Union like in C/C++, I would be greatly appreciative to know how.
Hopefully Helpful,
TamusJRoyce
Is a Structure truly a struct like in C, or is it essentially a class with all members defaultly public? And what is the point of a Module (I used one back in the day with VB6, but have read they have major speed issues--and why are they inefficient?).
How do these three fit in with each other in relation to Polymorphism? Can I inherit a Module from a Class or vs versa?
I've found it's quite hard to find documentation in MSDN on things like this, and googling hasn't gotten me far. And I hate to start up a new thread on such a fundamental/easy question...
I am basically interested in knowing features one may have over another. And if anyone knows of how to do a Union like in C/C++, I would be greatly appreciative to know how.
Hopefully Helpful,
TamusJRoyce
Comment