Ch10_Logic8e_Solutions - Programming Logic and Design, 8e...

This preview shows page 1 - 4 out of 31 pages.

Programming Logic and Design, 8eSolutions 10-1Programming Logic and Design, 8th EditionChapter 10Review QuestionsREVIEW QUESTIONS1.Which of the following means the same asobject?a. classb. instancec. fieldd. category
2.Which of the following means the same asinstance variable?
3.A program that instantiates objects of another prewritten class is a(n) __________.
4.The relationship between an instance and a class is a(n) _____ relationship.
5.Which of these does not belong with the others?a. instance variableb. attributec. fieldd. object
6.The process of acquiring the traits of one’s predecessors is __________.
We have textbook solutions for you!
/JavaScript-The-Web-Warrior-Series-6th-Edition-9781305078444-2709/
The document you are viewing contains questions related to this textbook.
Chapter 7 / Exercise 14
JavaScript: The Web Warrior Series
Vodnik
Expert Verified
Programming Logic and Design, 8eSolutions 10-2d. orientation7.When discussing classes and objects,encapsulationmeans that _____.
8.Every class definition must contain __________.
9.Assume that a working program contains the following statement:myDog.setName("Bowser")Which of the following do you know?a.setName()is a public methodb.setName()accepts a string parameterc. both of the aboved. none of the above
10.Assume that a working program contains the following statement:name = myDog.getName()Which of the following do you know?
11.A class diagram _____.
12.Which of the following is the most likely scenario for a specific class?
13.An instance method __________.a. is static
Programming Logic and Design, 8eSolutions 10-3b. receives athisreferencec. both of thesed. none of these14.Assume that you have created a class namedDogthat contains a data fieldnamedweightand an instance method namedsetWeight(). Further assume thatthesetWeight()method accepts a numeric parameter namedweight. Which ofthe following statements correctly sets aDog’s weight within thesetWeight()method?

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 31 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
JavaScript: The Web Warrior Series
The document you are viewing contains questions related to this textbook.
Chapter 7 / Exercise 14
JavaScript: The Web Warrior Series
Vodnik
Expert Verified

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture