Chapter 5 - Objects Flashcards
1
Q
Whats an object?
A
A combination of data and functions. Usually the data inside an object cannot be accessed directly.
2
Q
Whats a method?
A
functions for manipulating their data.
3
Q
How do we use methods?
A
Determining if a string contains spaces, converting all characters in a string to lower case, determining if a string contains a certain sequence of characters, and many others.