Question: c++ Given the inheritance relationship as Figure A-5, which statement is CORRECT? Book name: String #pages: int + getPages() : void + setPages() : void

Given the inheritance relationship as Figure A-5, which statement is CORRECT? Book name: String #pages: int + getPages() : void + setPages() : void Dictionary definition: int + computeRatio() : double + getDefinitions() : int + setDefinitions(int) : void Figure A-5 Dictionary definition: Int + computeRatio() : double + getDefinitions(): int + setDefinitions(int) : void Figure A-5 Dictionary owns name, pages, getPages(), setPages(), computeRatio(), getDefinitions(). definition, computeRation() Dictionary can access pages, name, getPages(), setPages(). Book can access pages, getPages(), setPages(), computeRatio() and definition. Book owns pages, getPages(), setPages(), computeRatio(), getDefinitions(), definition, computeRation()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
