Someone please give me some idea to solve this question ? Should I use Interface or I can use only Heritage ?
Write classes implementing the management industrial tools:
* Each one tools can be started, stopped or be stopped urgently.
* There are three families of tools :
1. Electric : characterized by an input voltage and watt
2. Hydraulic : characterized by a pressure in bar at the entry
3. Mechanic : characterized by a power
* In the event of error, the tools start an exception.
Write a class which contains a function allowing to create tools dynamically. This function receives in parameter the name of the tools.