Answer to Question #319624 in Java | JSP | JSF for Jay

Question #319624

1)     You have been asked to implement a user-interface component ButtonCanvas which is both a button that can be clicked by the user and a canvas which the user can draw on. Your existing code contains a Button class and a Canvas class. Both of this extend GuiComponent.

a)     ButtonCanvas should be built using multiple inheritance. What does this mean in this context?                                                                                                (3 marks)

b)     Give two reasons why this might be desirable.                                         (3 marks)

c)     Give two complexities that arise in this case                                             (3 marks)

d)     Java interfaces originally contained only abstract methods and static final fields. How did this restrictions avoid the complexities of extending multiple classes?


0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS