as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
create a class for a computer programming language.
user
class program {
    private string language;
    private int numlines;
    private list<string> commands;
    
    public program(string language) {
        this.language = language;
        this.numlines = 0;
        this.commands = new arraylist<>();
    }
    
    public void addline(string command) {
        this.commands.add(command);
        this.numlines++;
    }
    
    public list<string> getcommands() {
        return this.commands;
    }
    
    public int getnumlines() {
        return this.numlines;
    }
    
    public string getlanguage() {
        return this.language;
    }
    
    public void execute() {
        for (string command : this.commands) {
            switch(this.language) {
                case 'python':
                    //execute python command
                    break;
                case 'java':
                    //execute java command
                    break;
                case 'c#':
                    //execute c# command
                    break;
            }
        }
    }
}
assistant