 Créer une classe pour un langage de programmation informatique.
class Program {\n private String language ;\n private int numLines ;\n private List<String> commands ;\n \n public Program(String language) {\n this.language = language;\n this.numLines = 0 ;\n this.commands = new ArrayList<>();\n }\n \n public void addLine(String command) {\n this.commands.add(command);\n this.numLines++;\n }\ n \n public List<String> getCommands() {\n return this.commands;\n }\n \n public int getNumLines() {\n return this.numLines;\n }\n \n public String getLanguage( ) {\n return this.language;\n }\n \n public void execute() {\n for (String command : this.commands) {\n switch(this.language) {\n case 'Python' : \n //exécute la commande python\n break ;\n case 'Java' :\n //exécute la commande java\n break ;\n case 'C#' :\n //exécute la commande C#\n break ;\n } \n }\n }\n}