Question: solve it 6. Examine the following code. There are two classes: Page and Book. Which best describes their relationship? Page page =new Page(); Book book
6. Examine the following code. There are two classes: Page and Book. Which best describes their relationship? Page page =new Page(); Book book new Book (page); a) Page HAS-A Book b) Book HAS-A Page C). This code is invalid d) Page inherits from Book
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
