TCO 2) Only those class members that are presented to the users of the class are let on of the ______ of the class. (Points : 2)
interface
implementation
constructors
superclass |
2. (TCO 2) _____ and _____ are other terms for bemuseters and setters. (Points : 2)
Constructors; destructors
Public; private
Retrievals; putters
None of the supra |
3. (TCO 2) Which of the hobby statements is/are true? (Points : 2)
If a method is public, it is ascertained get off the ground of the class implementation.
If you declare an attribute as private, you do non have to worry about tracking down every piece of code that might have changed the attribute when debugging.
plot of land designing a class you add as more interfaces as possible, trying to cover all possible rising user needs.
All of the above
None of the above|
4. (TCO 2) A waiter is creditworthy for taking the order from the Customer based on the menu, informing the Chef of the order and delivering the requested food back to the Customer. A Chef is responsible for preparing the food and notifying the Waiter when the food is ready. The Customer is responsible for placing an order from the menu. In identifying the interface of the Customer object, which of the following would you consider as (an) appropriate message(s) the Customer should respond to? (Points : 2)
How old are you?
How would you standardised your steak? Rare, medium rare, or well done?
What would you like to eat?
All of the above
Only B and C|
5. (TCO 5) autograph inside a _____ should set the newly created object to its initial _____ state. (Points : 2)
method; public
constructor; private
class; persistent
constructor; stable|
6. (TCO 5) Which of the following method pairs are not examples of method overloading?
(Points : 2)
public vacuity Roll() ; public int Move(int x)
public int Charge(int x) ; public int Charge(int y)
public int Subtract() ; public untenanted Subtract()
All of the above
only B |
7. (TCO 5) Consider the following...If you want to get a full essay, order it on our website: Ordercustompaper.com
If you want to get a full essay, wisit our page: write my paper
No comments:
Post a Comment