B
Brian
Hello..
After many books and self study, I think I am finally starting to grasp the
basics of classes. However, I can't quite grasp how to use them after I
design them.
For example, I want to practice class development and basic VB.net design by
making a text adventure of sorts.
So, I start with a location. And in that location I will have a description
and a location number (integer) to let the program know where I am at. So,
would I design the class like this
Public Class Location
Private desc as String
Private loc as Integer
End Class
If that is it, then how do I call it..let's say, I press the button to go
WEST and I want it to then know the location and show the description. How
do I call this class or any class for that matter. I hope I am just not
totally lost or making it harder than it really is.
Thanks,
Brian
After many books and self study, I think I am finally starting to grasp the
basics of classes. However, I can't quite grasp how to use them after I
design them.
For example, I want to practice class development and basic VB.net design by
making a text adventure of sorts.
So, I start with a location. And in that location I will have a description
and a location number (integer) to let the program know where I am at. So,
would I design the class like this
Public Class Location
Private desc as String
Private loc as Integer
End Class
If that is it, then how do I call it..let's say, I press the button to go
WEST and I want it to then know the location and show the description. How
do I call this class or any class for that matter. I hope I am just not
totally lost or making it harder than it really is.
Thanks,
Brian