subject

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

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:30, enazer
Type the correct answer in the box. spell all words correctly. what kind of graph or chart does this image represent? the given image represents a (blank).
Answers: 2
image
Computers and Technology, 23.06.2019 01:50, jumoke26
Create a class named majors that includes an enumeration for the six majors offered by a college as follows: acc, chem, cis, eng, his, phys. display the enumeration values for the user, then prompt the user to enter a major. display the college division in which the major falls. acc and cis are in the business division, chem and phys are in the science division, and eng and his are in the humanities division. save the file as majors. java.
Answers: 2
image
Computers and Technology, 23.06.2019 07:30, Braxtonw875
What part of the interface displays the external references contained in a selected cell? the status bar the review tab the scroll bar the formula bar
Answers: 1
image
Computers and Technology, 23.06.2019 23:40, lexiecooley
4. what is the reason for including the following code snippet in the header file animal. h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
You know the right answer?
Normally, you declare constructors to be so that other classes can instantiate objects that belong...

Questions in other subjects: