Ask Question
20 October, 06:50

A student has created a Book class. The class contains variables to represent the following. An int variable called pages to represent the number of pagesA boolean variable called isHardcover to indicate whether or not the book is hardcoverThe object story will be declared as type Book. Which of the following descriptions is accurate? a - An instance of the story class is Book. b - An instance of the Book object is story. c - An attribute of the story object is isHardcover. d - An attribute of the pages object is Book. e - An attribute of the Book instance is story.

+1
Answers (1)
  1. 20 October, 06:55
    0
    Option c An attribute of the story object is isHardcover

    Explanation:

    Given a book class that contains a boolean variable isHardcover. This is considered as an instance variable that will be available to all book object. Since the object story is declared as type Book and therefore it possesses the instance variable, isHardcover. The instance variable in an object is also termed as attribute which is a data component of the object.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “A student has created a Book class. The class contains variables to represent the following. An int variable called pages to represent the ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers