Java Exam 3 Flashcards

Classes, Objects, Inheritance

1
Q

Object

A

An object is a programming entity that has state (data) and behavior (methods)

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

state

A

A state is a set of values (internal data) stored in an object

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

behavior

A

A behavior is a set of actions an object can perform, often reporting or modifying its internal state

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

constructor

A

A constructor is a method we call on a class that returns an instance of that
class

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

Field

A

aka object state a variable inside an object that makes up part of its state

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