ThePentiumGuy Posted January 2, 2004 Posted January 2, 2004 hey whats the difference between a module and a class when should u use what thanks Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
*Experts* Bucky Posted January 2, 2004 *Experts* Posted January 2, 2004 A module provides a way to declare public members that can be seen throughout the entire project (also known as global). While this may seem convenient, it's disorganized and goes against the concepts of OOP. You should never have to use a module. Instead, create a class that has static (Shared in VB) members. Also, modules do not have instances like classes do; they are not initialized or destroyed, and their variables keep their vaules for the duration of the app's execution. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
ThePentiumGuy Posted January 3, 2004 Author Posted January 3, 2004 oh thanks a lot classes seem better :-p Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.