11. Object oriented design Flashcards
What is the difference between a mutable and an immutable object?
ss
What does import do for us?
ss
Which package has all its classes imported automatically?
ss
What are stubs used for?
ss
What symbols are used to start and end a multi-line comment?
ss
In object oriented design, in what sense is the design oriented around objects?
ss
What two interesting things might nouns that appear in the requirements statements relate to?
ss
How does the idea of encapsulation relate to the default of making our instance variables private?
ss
What principles do we follow when deciding in which class our code should reside?
ss
What is the name of the mechanism for passing arguments to methods in Java?
ss
What is the significance of the approach for arguments of a primitive type and those of a reference type?
ss
In what way must each constructor be distinguished from the others?
ss
What two things are checked by the compiler in the multiple returns context?
ss
What do we mean by the phrase ‘single entry, multiple exit’?
ss
Which of the following method headings suggest they are accessor methods?
private void updateFeature() public void updateFeature() private int getFeature() public int getFeature() private static int getFeature() public static int getFeature() private void setFeature(int f) public void setFeature(int f)
ss