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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Whats a method?

A

functions for manipulating their data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly