Ch11_Logic8e_Solutions - Programming Logic and Design 8e Solutions 11-1 Programming Logic and Design 8th Edition Chapter 11 Review Questions 1 When you

Ch11_Logic8e_Solutions - Programming Logic and Design 8e...

This preview shows page 1 - 3 out of 47 pages.

Programming Logic and Design, 8eSolutions 11-1Programming Logic and Design, 8th EditionChapter 11Review Questions1.When you instantiate an object, the automatically created method that is called isa __________.a. creatorb. initiatorc. architectd. constructor2.Every class has _____.3.Which of the following can be overloaded?4.Every default constructor __________.5.When 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 empty6.When you write a constructor that receives no parameters, _____.
Background image
Programming Logic and Design, 8eSolutions 11-27.Most often, a destructor is called when __________.8.Which of the following is not a similarity between constructors and destructors?9.Advantages of creating a class that inherits from another include all of the following except:a.You save timebecause subclasses are created automatically from those that come built in as part of a programming language.b.You save time because you need not re-create the fields and methods in the original class.c.You reduce the chance of errors because the original class’s methods have already been used andtested.d.You makeit easier for anyone who has used the original class to understand the new class.10.Employing inheritance reduces errors because _____.
Background image
Image of page 3

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture