Computers and Technology

Normally, you declare constructors to be so that other classes can instantiate objects that belong to the class.
a. shared
b. protected
c. public
d. private
any method or constructor in a class can be overloaded, and you can provide as many versions as you want as long as each version has a unique
a. numeric variable
b. signature
c. instance variable
d. name
most often, an instance of a class is destroyed when the object goes
a. in the trash can
b. in the recycle bin
c. out of bounds
d. out of scope
which of the following is not true about destructors?
a. a destructor has no return type.
b. destructors can be overloaded.
c. destructors are invoked automatically.
d. a class can have one destructor at most.
is the technique of placing an object within an object of another class.
a. overloading
b. polymorphism
c. composition
d. binding
which of the following is not a benefit of using inheritance?
a. you make it more complicated for anyone to understand the new class.
b. you reduce the chance for errors and inconsistencies in shared fields.
c. you reduce the chance of errors because the inherited methods have already been used and tested.
d. you save time because you do not need to re-create inherited fields and methods.
a class that is used as a basis for inheritance is called a base class or
a. child class
b. derived class
c. superclass
d. subclass
when you create a class that inherits from a base class, it is a or extended class.
a. superclass
b. derived class
c. parent class
d. base class
what is another name for a subclass?
a. superclass
b. base class
c. parent class
d. child class
the of a derived class are the entire list of parent classes from which the class is derived.
a. hierarchy
b. ancestors
c. predecessors
d. relatives
a(n) class is one from which you cannot instantiate concrete objects, but from which you can inherit.
a. super
b. ancestor
c. abstract
d. extended
is the mechanism by which a child class method is used by default when a parent class contains a method with the same signature.
a. overriding
b. polymorphism
c. composition
d. inheritance
subclass creators save testing time because the superclass code has already been tested and probably used in a variety of situations. in other words, the superclass code is
a. reliable
b. fragile
c. finished
d. complete
programming languages that supply existing gui classes often provide a development environment in which you can create programs.
a. visual
b. command
c. rapid
d. test
object-oriented programs employ a group of techniques for handling errors called handling.
a. mistake
b. error
c. data
d. exception
when you try a block of code, you attempt to use it, and if an error occurs, it is
a. caught
b. thrown
c. trapped
d. blocked
when you create a segment of code in which something might go wrong, you place the code in a(n) block, which is a block of code you attempt to execute while acknowledging that an error might occur.
a. stop
b. catch
c. error
d. try
when you use programming techniques, you save development time because each object automatically includes appropriate, reliable methods, and attributes.
a. procedural
b. object-oriented
c. package
d. ide

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 03:40, hussain34
Mary's manager told her she should insert a graphic into her documentwrite mary a brief note describing how to insert a graphicin a word processing document.
Answers: 1
image
Computers and Technology, 22.06.2019 14:10, normarismendoza
Dean wants a quick way to look up staff members by their staff id. in cell q3, nest the existing vlookup function in an iferror function. if the vlookup function returns an error result, the text β€œinvalid staff id” should be displayed by the formula. (hint: you can test that this formula is working by changing the value in cell q2 to 0, but remember to set the value of cell q2 back to 1036 when the testing is complete.)
Answers: 3
image
Computers and Technology, 23.06.2019 19:00, brittneyrenae7338
This question involves a class named textfile that represents a text file. public class textfile { private string filename; private string filename; private arraylist words; // constructors not shown // postcondition: returns the number of bytes in this file public int filesize() { } // precondition: 0 < = index < words. size() // postcondition: removes numwords words from the words arraylist beginning at // index. public void deletewords(int index, int numwords) { } // precondition: 0 < = index < = words. size() // postcondition: adds elements from newwords array to words arraylist beginning // at index. pub lic voidaddwords(int index, string[] newwords) { } // other methods not shown } complete the filesize() method. the filesize() is computed in bytes. in a text file, each character in each word counts as one byte. in addition, there is a space in between each word in the words arraylist, and each of those spaces also counts as one byte. for example, suppose the words arraylist stores the following words: { mary had a little lamb; its fleece was white as snow. } the filesize() method would compute 4 + 3 + 1 + 6 + 5 + 4 + 6 + 3 + 5 + 2 + 5 as the sum of the lengths of each string in the arraylist. the value returned would be this sum plus 10, because there would also be 10 spaces in between the 11 words. complete the filesize() method below: // postcondition: returns the number of bytes in this file public int filesize() { }
Answers: 1
image
Computers and Technology, 23.06.2019 20:00, noah12345678
What multimedia system creates an immersive, real-life experience that the user can interact with?
Answers: 1
Do you know the correct answer?
Normally, you declare constructors to be so that other classes can instantiate objects that belong...

Questions in other subjects: