Tag: 21132

Assume the existence of a Phone class with a method, clear, that clears the phone’s memory– its phone book, list of call, text messages, etc. Assume also, a subclass CameraPhone with an instance variable, album, of type PhotoAlbum–which has a method, also called clear that clears its contents. Override the clear method in CameraPhone to clear the entire phone, i.e., to invoke the clear method of Phone (the superclass), as well as invoking the clear method of the album instance variable.

Assume the existence of a Phone class with a method, clear, that clears the phone’s memory– its phone book, list of call, text messages, etc. Assume also, a subclass CameraPhone with an instance variable, album, of type  PhotoAlbum–which has a method, also called clear that clears its contents. Override the clear method in CameraPhone to clear the entire phone, i.e., to invoke the clear method of Phone (the superclass), as well as invoking the clear method of the album instance variable.

LANGUAGE: JAVA CHALLENGE: Assume the existence of a Phone class with a method, clear, that clears the phone’s memory– its phone book, list of call, text messages, etc. Assume also, a subclass CameraPhone with an instance variable, album, of type PhotoAlbum–which has a method, also called clear that clears its contents. Override the clear method in...

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days - Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level

Read More