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"
Monday, February 22, 2010
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
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
Sunday, February 21, 2010
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
#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
Monday, February 15, 2010
Getting to know Visual Basic
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.
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
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.
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).
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
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
Sunday, February 7, 2010
8/2/2010
Subscribe to:
Posts (Atom)