Classes are types that allow a procedure to be created. These types include: Variables, Methods, Events, and Properties. Objects are very much like Classes and cannot work without each other. They include Properties, Events, Methods, and Variables to create a procedure.
In the Cats And Dogs exercise earlier today we used object-oriented coding to create a program thta shows a cat's age, name and breed as well as the dog's name, age, and breed. We used
Public _ instead of Dim as the declaration to create the object and Public Sub New for the methods to be placed in. It is also the constructor for the procedure and its job is to create the objects for the procedure to work.
Monday, March 23, 2009
Subscribe to:
Post Comments (Atom)


No comments:
Post a Comment