100%(6)6 out of 6 people found this document helpful
This preview shows page 1 - 3 out of 456 pages.
gic and Design, 8th EditionChapter 11Review Questions1When you instantiate an object, the automatically created method that is called isa. creatorb. initiatorc. architectd. constructor2Every class has _____.3Which of the following can be overloaded?4Every default constructor __________.5When you write a constructor that receives a parameter, __________.a. the automatically created default constructor no longer existsb. the parameter must be used to set a data fieldc. it becomes the default constructord. the constructor body must be empty6When you write a constructor that receives no parameters, _____.7Most often, a destructor is called when __________.8Which of the following is not a similarity between constructors and destructors?
9You save time because you need not re-create the fields and methods in the original class.You reduce the chance of errors because the original class’s methods have already been used 10Employing inheritance reduces errors because _____.a. the new classes have access to fewer data fieldsb. the new classes have access to fewer methodsc. you can copy and paste methods that you already createdd. many of the methods you need have already been used and tested11A class that is used as a basis for inheritance is called a _____.12Which of the following is another name for a derived class?1314Which of the following is true?a. A base class usually has more fields than its descendent.b. A child class can also be a parent class.c. A class’s ancestors consist of its entire list of children.d. To be considered object oriented, a class must have a child.