Last active
September 1, 2015 01:28
-
-
Save trub/463504b94a57fecddc4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### A string is: | |
An ordered collection of characters. Used most commonly to store words or sentences. | |
### Pick one of your favorite apps and describe a few places where it uses strings. Be specific: | |
The splash page for snapchat has two buttons on it. I assume those buttons contain strings with the characters "sign up" and "log in". | |
### Describe what a method is: | |
-is a function that is defined inside of a class | |
-for example, you could have an object that is a dog. | |
this dog could have two methods: bark & sit. | |
The specific class could be that there is a dog named Snoopy. | |
-therefore, a method is an action that instances of a class can perform. | |
So I can invoke Snoopy and then make him bark. -a means to return values or information. | |
so when snoopy barks I am returning that as a value. | |
### Using the same app, try to guess a few methods the app must implement. Describe what these methods do. | |
-This question is confusing since we don't really outline what object and | |
class we are working with I'm not sure what methods we "must" implement. | |
The app runs successfully as is so I'll have to leave this as incomplete. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment