Java Exam 3 Flashcards
Classes, Objects, Inheritance
1
Q
Object
A
An object is a programming entity that has state (data) and behavior (methods)
2
Q
state
A
A state is a set of values (internal data) stored in an object
3
Q
behavior
A
A behavior is a set of actions an object can perform, often reporting or modifying its internal state
4
Q
constructor
A
A constructor is a method we call on a class that returns an instance of that
class
5
Q
Field
A
aka object state a variable inside an object that makes up part of its state