Method Stub

Why Trust Techopedia

What Does Method Stub Mean?

A method stub is a piece of code used to stand in for some other programming functionality in software development. It may simulate the behavior of an existing piece of code, or stand in for code that has not yet been developed. Stubs play an important role in software development, testing and porting, although they are also widely used in distributed computing.

Advertisements

A method stub may also be known simply as a stub.

Techopedia Explains Method Stub

A method stub merely declares itself and the parameters it accepts. Stubs are used as implementations of a known interface, where the interface is known but not the implementation. Stubs enclose codes to be compiled and linked with the rest of the program. They include just enough code to allow them to be compiled and linked with the existing program.

Advertisements

Related Terms

Margaret Rouse
Technology expert
Margaret Rouse
Technology expert

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.