A stub, in the context of computer programming, especially in terms of object-oriented design and distributed computing, is an object class, usually generated by the compiler, which marshalls remote method calls on distributed objects over a network connection. Once the method call reaches the server, the server calls the dispatch method of a skeleton, which in turn calls the appropriate method on the object and pushes the result back down the wire.