By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Working with classes

Talihomz
P: 11
Hi.I dont understand how to work with classes.Some1 pliz explain to me how they differ from using Type.
Jan 22 '08 #1
Share this Question
Share on Google+
4 Replies


Expert 100+
P: 634
Hi.I dont understand how to work with classes.Some1 pliz explain to me how they differ from using Type.
Hi

I'm sure others will come up with a more definitive definition, but to me the main differences are

Compared to a User Defined Type

1) Classes can have read-only and write-only properties
2) to achieve 1), amongst other things, they (can) have internal (private) subs and functions.
3) can be used in other classes without declaring them as global
4) but above all they can have methods.

This may be a little brief (as is your question!), but I'm not sure where you are at or your intentions, but hope this helps. Please ask if more clarification is needed, someone will know if I don't!


MTB
Jan 22 '08 #2

Talihomz
P: 11
I want to learn how to work with classes n how to use them.Help me
Jan 22 '08 #3

debasisdas
Expert 5K+
P: 8,127
Your question is too much theoritical and is beyond the scope of this discussion. Please follow any good book for the same or you can find a lot of them by investing some time in websearching. Also check in the Howto section of VB in this forum for some very good tutorials.
Jan 22 '08 #4

Expert 5K+
P: 8,434
Have a look around on the web, you'll find lots of good VB tutorials.
Jan 22 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.