I am verry confused about classes. I understand that classes can encapsulate
properties, methods, events (don't know hoy to add events to a class), etc.
I am confused with this: if you can encapsulate all this in a class, how do
you decide or when is it necessary to Dim x as new MyClass or when to use
Imports MyClass. Eather way you have access to all that is inside it.
If I make a class calld User and I want it to handle everything related to
the user: LoginUser, IsLogged, Store the user info. and make that info last
through all the time the app is running how do I get this functionality.
This are my main questions.
If there is a good and understanable document about this please point me to
it.
TIA!
properties, methods, events (don't know hoy to add events to a class), etc.
I am confused with this: if you can encapsulate all this in a class, how do
you decide or when is it necessary to Dim x as new MyClass or when to use
Imports MyClass. Eather way you have access to all that is inside it.
If I make a class calld User and I want it to handle everything related to
the user: LoginUser, IsLogged, Store the user info. and make that info last
through all the time the app is running how do I get this functionality.
This are my main questions.
If there is a good and understanable document about this please point me to
it.
TIA!
Comment