I have to design a toy application which can which can perform two task (for now but can change later): 1. dance 2. sing and it can dance and sing together also. The toy runs on cell which is rechargeable (again for now : the changing aspect ) and the cell remaining charging percent has to be tracked. It should reflect x% cell left during toy performing actions.
Toy can dance for 5 minute (for now) for full charge. Toy can sing for 10 minute (for now) for full charge cell.
How to design this toy (in terms of interface and classes etc.)so that it should be extensible for future enhancement? It must follow SOLID principle. Which design pattern will be suitable for this toy application? Please provide some idea on this.
Aucun commentaire:
Enregistrer un commentaire