Class Notes (838,711)
United States (325,519)
CAS CS 101 (27)

Functions in Alice.docx

1 Page
Unlock Document

Computer Science
CAS CS 101
Aaron Stevens

Functions in Alice Review Methods - can have variables and parameters (how long an action should occur) - Objects can have parameters, too Q: What is the difference between a variable and a parameter? Function - Tying data to be associated with an object • Generate data from an object • Shows that there is a property used to make the object do something • Has steps & procedures • Can retrieve property data from an object - They have a data type because it is a necessary job of a function to give back data - “prescription” for how to combine data (do two things at once, like wizard says name&title together) • a space is a valid ASCII character, needs it’s own string Scope - the idea that “saying one thing in one room is not heard in the other room” - so using a name of a variable in one page will not interfere with the name of a variable in another page (so two can be
More Less

Related notes for CAS CS 101

Log In


Join OneClass

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

Sign up

Join to view


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.