An object has...?
State and Behaviour.
Actions and Classes.
Methods and Code.
How many objects can a class have?
As many as we want
What type of declarations need to be made by a class?
State and Behavior
Class and Object
Data and Method
What is the toString method?
A method that makes two strings.
A method that combines two strings.
A method that prints a string representation of an object.
A method that returns a string representation of an object.
What is a constructor?
A person who directs a choir or orchestra.
A person who builds buildings
A method used to set up an object upon its creation.
A method used to build a class.
How is a constructor called and how is it named?
It is called by java and is also named by java.
It is called by a line of code and is named by the author.
It is called by a line of code and shares the name of the class.
It is called via "new" and shares the name of the class.
A constructor can accept parameters if necessary.
What is the scope of a variable?
What the variable can apply to.
How many times the variable can be used.
The region of the program that the variable can be used within.
The accuracy of the variable.
What is an instance variable?
A variable that only is used once.
A copy of a variable that is given to each object.
A variable that only applies to one instance (object).
A copy of a variable that applies to all objects in a program.
A client should be aware of both the implementation details as well as the interface.