Design classes for devices that support different combinations of capabilities.
Unlock detailed company stats for this questionUpgrade
Design the classes/interfaces and then implement them. A device should be able to tell whether it is plugged in and provide its current charging percentage. There should be a display capability to show a message and a speaker capability to play/speak a message. Different devices can support different combinations of these capabilities; for example, a Tablet has the device functionality along with display and speaker functionality.
Format · Technical interview.
Community answers
No answers contributed by the community yet.
Related courses

Course

Course
Course
