|
The ability to use methods without knowing the details of their contents is a feature of ____.
Design a class named CustomerRecord that holds a customer number, name, and address. Include methods to set the values for each data field and output the values for each data field. Create the class diagram and write the code (not language specific, ie. psuedocode) that defines the class.
A catch block consists of four different elements: the keyword catch, followed by parentheses that contain an exception type and identifier, statements that take action to handle the error condition, an endcatch statement, and a return statement.
A ____ is a segment of code that can handle an exception that might be thrown by the try block that precedes it.
The memory location known as the ____ is where the computer stores the list of method locations to which the system must return.
When appropriate, specialized ____ classes provide an elegant way for you to handle error situations.
Creating multiple methods with the same name, which will act differently and appropriately when used with different types of objects, is known as polymorphism.
The object-oriented techniques to manage errors such as dividing a value by 0 comprise the group of methods known as ____.
Simple non-array variables are usually passed to methods by ____.
What will be the output of the below program? List what will be outputed to the screen and explain your answer. class Class_name main() // Declarations num index num SIZE = 10 num numbers[SIZE] = 0,0,0,0,0,0,0,0,0,0 index = 0 while index < SIZE numbers[index]= index * 10 index = index + 1 endwhile output “The Output is: ” while index > 0 index = index – 1 output numbers[index] endwhile return endClass When illegal division by 0 takes place, an Exception object is not created automatically by the object-oriented language application.
You can write as many constructors for a class as you want, as long as they all have different ____ lists.
A ____ reference is an automatically created variable that holds the address of an object and passes it to an instance method whenever the method is called.
What is the screen output of the following code segment? Explain the reasoning behind your answer. Test1 = 70 IF Average >= 90 THEN Output “Great job” Output “Your average is: ”, Average ELSE IF Average >= 80 or Average <=89 THEN Output “Nice work” Output “Your average is: “, Average ELSE Output : “Your Average is:”, Average Output “, You will do better next time!” ENDIF An instance method or constructor may be overloaded by providing the same name and ____ argument list.
When a data field is private, it is said to be ____ to any class other than the one in which it is defined.
Methods can be ____ correctly by providing different parameter lists for methods with the same name.
|


0 comments