Jennifer Snyder
Unit 4 DB
Visual Basic.NET allows you to create your own classes. Provide an
example of a useful class you could create. What methods and properties
would you include?
Let’s first define what a “class” is. A class is known as the
main source in which data and code are contained. The data in this can
also be accessed by properties and the code is considered “methods”.
(www.msdn.microsoft.com)
What does that mean exactly? Well for instance because each class is
the main source of the language, you will be using classes to not only
write programs but to act and respond to the properties and/or methods.
When you create a property you set a value to it which is set in the
code and responds to the users input. When you have text box for
example, you can change the control of it and/or value, which are known
as “properties”. When you turn your radio on and off, you have two
buttons, an “on” and “off” button with values assigned to each
which “controls” the property of the button.
For example,
