Sure you could create classes to talk to other programs...but this is not the fundamental purpose of classes, which is to represent objects, and expose their properties and methods.