JAVA; CLASSES AND OBJECTS
QUESTIONS AND ANSWERS
Objects have two properties. One is state. What is the other? - ANSWER
Behavior
The state of an object is stored in _____ _____ - ANSWER Instance variables
The behaviour of an object is represented by ______ ______ - ANSWER
Instance methods
The job of a _____ is to initialise instance variables at the time an object is
created. - ANSWER Constructor
There are three kinds of declarations nested inside a class declaration. What are
they? - ANSWER Constructor declarations
Variable declarations
Method declarations
The words public and private are _____ _____ - ANSWER Access modifiers
A method is allowed to have _______, which represent data that will be
supplied when the method is called. - ANSWER Parameters
QUESTIONS AND ANSWERS
Objects have two properties. One is state. What is the other? - ANSWER
Behavior
The state of an object is stored in _____ _____ - ANSWER Instance variables
The behaviour of an object is represented by ______ ______ - ANSWER
Instance methods
The job of a _____ is to initialise instance variables at the time an object is
created. - ANSWER Constructor
There are three kinds of declarations nested inside a class declaration. What are
they? - ANSWER Constructor declarations
Variable declarations
Method declarations
The words public and private are _____ _____ - ANSWER Access modifiers
A method is allowed to have _______, which represent data that will be
supplied when the method is called. - ANSWER Parameters