Zusammenfassung der Ressource
Frage 1
Frage
What is a condition that should be true when a method is called?
Antworten
-
Constructor
-
Precondition
-
Postcondition
Frage 2
Frage
Cannot have any return type, even void.
Antworten
-
Constructor
-
Precondition
-
Postcondition
Frage 3
Frage
A variable declared in a method is local to that method and cannot be used outside of it.
Frage 4
Frage
Most objects contain accessor and mutator methods to allow the client to manage data in a controlled manner.
Frage 5
Frage
A return value must match the return type in the method header.
Frage 6
Frage
When a method is called, the formal parameters are copied into the actual parameters. The types of the corresponding parameters must match.
Frage 7
Frage
You can have multiple methods with the same name in the same program.
Frage 8
Frage
A method invoked through one object may take as a parameter another oject of the same class.
Frage 9
Frage
Instance variables should be declared with public visibility to protect their data.
Frage 10
Frage
Each object has a state and a set of behaviors.