This week we looked at the Select Case statement. It allows for lots of different operations to occur depending on the value of a single field. In the Select Case program we made we also looked at having something occur depending on which button is pressed in a message box. In this case it was asking if they wanted the text displayed to be reversed.
Next we started making a program called Cats And Dogs.
We had to create 2 classes for this exercise, 1 called Cat the other Dog.
Within each class we had to declare 3 properties, Name, Age and Breed through the Public _ keyword, instead of Dim, and 3 Methods.
Both had a "New" method which is the constructor for the class, the Dog Class also had 1 method called Bark and another called GoWalkies, the Cat Class had 1 method called Meow and another called Chase Mouse.
Next we started making a program called Cats And Dogs.
We had to create 2 classes for this exercise, 1 called Cat the other Dog.
Within each class we had to declare 3 properties, Name, Age and Breed through the Public _ keyword, instead of Dim, and 3 Methods.
Both had a "New" method which is the constructor for the class, the Dog Class also had 1 method called Bark and another called GoWalkies, the Cat Class had 1 method called Meow and another called Chase Mouse.
No comments:
Post a Comment