Ch10_Logic8e_Solutions - Programming Logic and Design 8e Solutions 10-1 Programming Logic and Design 8th Edition Chapter 10 Review Questions REVIEW

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 as object?a. classb. instancec. fieldd. category2.Which of the following means the same as instance 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. object6.The process of acquiring the traits of one’s predecessors is __________.
Background image
Programming Logic and Design, 8eSolutions 10-27.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 above10.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
Background image
Programming Logic and Design, 8eSolutions 10-3b. receives a thisreferencec. both of thesed. none of these14.Assume that you have created a class named Dogthat contains a data field named weightand an instance method named setWeight(). Further assume thatthe setWeight()method accepts a numeric parameter named weight. Which of the following statements correctly sets a Dog’s weight within the setWeight()method?
Background image
Image of page 4

You've reached the end of your free preview.

Want to read all 31 pages?

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes