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. constructor
2.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 empty
6.When you write a constructor that receives no parameters, _____.
We have textbook solutions for you!
/Systems-Architecture-7th-Edition-9781305080195-1466/
The document you are viewing contains questions related to this textbook.
Chapter 13 / Exercise 18
Systems Architecture
Burd
Expert Verified
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 followingexcept:a.You savetimebecause subclasses are created automatically from those that come built in aspart of aprogramming 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.Youmakeit easier for anyone who has used the original class to understand the new class.
10.Employing inheritance reduces errors because _____.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 47 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Object Oriented Programming, derived class, NUM, public void, public num
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
Systems Architecture
The document you are viewing contains questions related to this textbook.
Chapter 13 / Exercise 18
Systems Architecture
Burd
Expert Verified

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture