Classes & Objects Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Class Signature

A

The first line of a class, has to have name of class starting with a capital letter, has curly brackets after, the material inside of the class go between the curly brackets.

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

Instance Variables

A

A variable that belongs to a class and occurs right after the class signature line.

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

Instantiating a class

A

Creating an object or instance of a class so that it can be used in a program. The object will share the instance variables and methods of the class.

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