Monday, March 22, 2010
Learning & Assessment Activity
This activity is preparation for assessment item 2.
Part One: Translate the following scenario into a class diagram using the classes, states, behaviors & relationships identified.
Part One: Translate the following scenario into a class diagram using the classes, states, behaviors & relationships identified.
The scenario:
A hermit lives in a cave. The cave's location within the world is determined by x, y & z coordinates. The hermit's name is Freeda and she is 100 years old. Many animals also live in the cave and they can talk. All of the animals have a first name & age. There are bats which fly & screech & there are lizards that run, hide & sing.
A hermit lives in a cave. The cave's location within the world is determined by x, y & z coordinates. The hermit's name is Freeda and she is 100 years old. Many animals also live in the cave and they can talk. All of the animals have a first name & age. There are bats which fly & screech & there are lizards that run, hide & sing.
Part Two: Translate the class diagram into VB.NET code.
Note: You are only required to fully implement behaviors that are getters, setters or constructors - other behaviors, such as 'talk', should simply appear as behavior signatures.
Part Three: Publish a screenshot of your class diagram, along with the scenario description to your blog
Sunday, March 21, 2010
As my form does not have labels telling you what the answers are in relation to I will let you know in order of what the labels represent:
The Name
The Health
The Password
The Account Status
The Max Altitude
The Damage Rate
The Sword Price
Friday, March 19, 2010
I Heart Mermaids
I had to share this with you,I love mermaids and one of my favourite websites is Face In Hole where i was able to make this cool creation
Monday, March 15, 2010
The Flight Object
The Sword Object
Accessors & Mutators:What are they?
An Accessor or a Getter allows other objects to read the value of a state
It is nearly always implemented as a a function
A Mutator or a Setter allows other objects to change the value of a state
It is usually implemented as a subroutine
It is nearly always implemented as a a function
A Mutator or a Setter allows other objects to change the value of a state
It is usually implemented as a subroutine
Interface Design:Mockai Project
Sunday, March 14, 2010
My Wand Class with a Constructor
Wednesday, March 10, 2010
Parameters Subroutines Functions
I am going to try my best to explain how parameters are used in subroutines and in functions,Here goes...to my understanding:)
Parameters are the inputs required for a behaviour to execute/work/run
In order to accomplish a task on some occasions further input or information is needed and thats where parameters come into play
In the case of subroutines let me use this example:
Public Sub Login(Username as string,Password as string)
In the above example there are two parameters needed in order to execute the behaviour which in this case is loging in,in order to do this we need our username and password otherwise we cant log in
Keeping in mind that a subroutine executes code but does not return a value
In the case of functions let me use this example:
Public Function Calculate(NumberOne as integer,NumberTwo as integer)As integer
In the above example there are also two parameters needed in order to execute the behaviour which in this case is the calculation of number one and the calculation of number two
In these examples we see that yes sometimes more then one parameter is needed in order to execute a code
Since a function returns a value the result of the parameters will be returned as an integer because as you can see above we asked for an interger value to be returned
Parameters are the inputs required for a behaviour to execute/work/run
In order to accomplish a task on some occasions further input or information is needed and thats where parameters come into play
In the case of subroutines let me use this example:
Public Sub Login(Username as string,Password as string)
In the above example there are two parameters needed in order to execute the behaviour which in this case is loging in,in order to do this we need our username and password otherwise we cant log in
Keeping in mind that a subroutine executes code but does not return a value
In the case of functions let me use this example:
Public Function Calculate(NumberOne as integer,NumberTwo as integer)As integer
In the above example there are also two parameters needed in order to execute the behaviour which in this case is the calculation of number one and the calculation of number two
In these examples we see that yes sometimes more then one parameter is needed in order to execute a code
Since a function returns a value the result of the parameters will be returned as an integer because as you can see above we asked for an interger value to be returned
Monday, March 8, 2010
Has A & Is A Relationships
Sunday, March 7, 2010
Subroutines and Functions
Assesment Activity
Write a short explaination of the difference between a subroutine and a function
A subroutine dose NOT return a value to the calling procedure
A function DOSE return a value to the calling procedure
They both DO execute code
I will be honest here,I have read my notes about the above and I dont understand it,I find that learning by reading a lot of the time doesnt help me whereas when being taught verbally does,so I will wait until Tuesdays class to catch up and learn this from Rachael.
I am also unable to use Visual Basic Studio at home which is annoying!
Write a short explaination of the difference between a subroutine and a function
A subroutine dose NOT return a value to the calling procedure
A function DOSE return a value to the calling procedure
They both DO execute code
I will be honest here,I have read my notes about the above and I dont understand it,I find that learning by reading a lot of the time doesnt help me whereas when being taught verbally does,so I will wait until Tuesdays class to catch up and learn this from Rachael.
I am also unable to use Visual Basic Studio at home which is annoying!
Subscribe to:
Posts (Atom)