Class Notes (837,539)
Canada (510,303)
IAT 265 (12)
Lecture

IAT265 Methods, Controls and Loops.docx

2 Pages
79 Views
Unlock Document

Department
Interactive Arts & Tech
Course
IAT 265
Professor
Matt Lockyer
Semester
Winter

Description
Methods Creating methods returnType methodName (parameters) { methodBody } Return Type-specifies what type of value will be returned (void for nothing) Method Name-must be unique (there are exceptions) Parameters-a list of variables with their type used in the method Method Body-the code that the method executes methodName(); is to call a method Controls and Loops if / else / switch statements Boolean expressions are statements that can be either true or false Boolean Operators ! negation && and (conjunction) || or (disjunction) > greater than >= greater than or equal to <= less than or equal to < less than == equal NOTE the difference between "=", which is the assignment operator != not equal If statements are used to allow your code to follow different paths depending on a condition -the concept is if the statement is true, do the following bit of code if ( boolean_expression ) { // statements } else { //statements } Nest if statements if( boolean_expression ) { if( other_boolean_expression ) { // statements } } else { // more statements } Switch is a shortcut to using
More Less

Related notes for IAT 265

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit