Ask Question
16 December, 00:07

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. 16 December, 02:45
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers