Monday, February 22, 2010

Inheritance "Is A" & Composition "Has A" 23/2/2010

Activity

Using your new knowledge of composition & multiplicity, draw a class diagram where one object is composed of at least 2 others. You may extend on the class you modeled in the previous lesson. Don't forget to represent the relationships & multiplicity between objects.

This is my example of Inheritance "Is A"

Relationships between Objects 23/2/2010

There are several types of relationships that may exist between objects.

We have looked at and created single classes.

Now we look at the relationships which exist between the classes.

Here is an example of how we use a separate class for Vegetation,being more of a generalised class which will then be broken down into other classes that have a relationship with each other

In this case tree will be a class of its own broken down from the class vegetation

Team Activity,State & Behaviour of Objects 23/2/2010

Activity

In your team, visit the courtyard (bring some writing materials) and identify the classes of objects that exist. Identify the state and behavior of each class and document them in a class diagram. Present your findings to the class.

Sunday, February 21, 2010

Arithmetic: Creating Expressions with Variables and Operators 22/2/2010

Activity

http://msdn.microsoft.com/en-au/library/xbzhz001.aspx

Words and Text: Using String Variables to Organize Words 22/2/2010

Activity

http://msdn.microsoft.com/en-au/library/whhs118y.aspx

Without Spaces



With Spaces

Arrays that are useful to my blog 22/2/2010

Three examples of situations where an array is useful to a blog:

#A list that archives the blogs in order of Date,Time etc

#A List of profile information of the blogger example:name,age,date of birth

#A list of people who are following the blog

Thursday, February 18, 2010

My First Array

Activity

To store values in an array

http://msdn.microsoft.com/en-au/library/ms172582.aspx

Monday, February 15, 2010

Create variables and display their values 16/2/2010

Activity

Getting to know Visual Basic

Activity

To view project files in Solution Explorer

1.

On the File menu, click New Project.

The New Project dialog box appears.
2.

Click Windows Forms Application and then click OK.
3.

If Solution Explorer is hidden, click the View menu and then click Solution Explorer.

Getting to know Visual Basic

Activity:

Adding Project Items

You can add items, such as another Windows Form, to your project by clicking the Project menu, and then clicking Add New Item.

However, you can also add project items in Solution Explorer.

To add a project item in Solution Explorer

1.

In Solution Explorer, right-click the solution (WindowsApplication1), point to Add, and then click New Item.

The Add New Item dialog box appears.
2.

Click Windows Form, and then click Add.

A new form is added to your solution, and Form2.vb appears in Solution Explorer underneath Form1.vb.

Getting to know Visual Basic

Activity

Viewing a code:

Right-click Form1.vb in Solution Explorer, and then click View Code.

The Code Editor appears.

Getting to know Data Types 16/2/2010

Activity

Using your new knowledge of behavior parameters, use a class diagram to model an object you might find in a game. This might be a weapon, a piece of furniture, clothing or anything else you can think of. Include the data types of each state & identify some behavior parameters and their data types.

Sunday, February 14, 2010

Data Types 15/2/2010

Data includes text,numbers, images and characters

The most common data types include:decimal,integer,string and Boolean

My Activity

Using your new knowledge of data types, choose one of the screen shots from the section called 'Data Types in the Wild' and model the screenshot as an object using a class diagram. Identify the states and the data types of each state (you may leave the behaviors blank for this diagram).



Monday, February 8, 2010

My Web Browser:Visual Basic

Activity

Create a Visual Studio project: Simple Web Browser

Step 1: Create a Project in Visual Basic
http://msdn.microsoft.com/en-au/library/eyzd6e34.aspx
Step 2: Create a User Interface
http://msdn.microsoft.com/en-au/library/s3hwe76s.aspx
Step 3: Customize Looks and Behavior
http://msdn.microsoft.com/en-au/library/y7x894ky.aspx
Step 4: Add Visual Basic Code
http://msdn.microsoft.com/en-au/library/bx0kecz4.aspx
Step 5: Run and Test Your Program
http://msdn.microsoft.com/en-au/library/s878kxw0.aspx



Blogger Gadgets


cool gadgets!

Sunday, February 7, 2010

8/2/2010

Object Oriented Design

Class diagram

Activity

Create your own class diagram using an object of your choice.