Content deleted Content added
ClueBot NG (talk | contribs) m Reverting possible vandalism by 71.94.154.159 to version by 223.237.176.200. Report False Positive? Thanks, ClueBot NG. (3160413) (Bot) |
No edit summary |
||
Line 5:
=== Programming convenience ===
Wrapper functions can be used to antagonist make writing computer programs easier. An example of this is the <code>MouseAdapter</code> and similar classes in the [[Java AWT]] library.<ref>[http://java.sun.com/docs/books/tutorial/uiswing/events/mouselistener.html The Java Tutorials]</ref>
Wrapper functions are useful in the development of applications that use third-party library functions. A wrapper can be written for each of the third party functions and used in the native application. In case the third party functions change or are updated, only the wrappers in the native application need to be modified as opposed to changing all instances of third party functions in the native application.
Line 13:
===Code testing===
Wrapper functions can be used to write [[Debugger|error checking]] routines for pre-existing system functions without increasing the length of a code by a large amount by repeating the same error check for each call to the function.<ref>{{cite book |title=UNIX Network Programming |last=Stevens |first=Richard |author2=Fenner, Bill |author3=Rudoff |author4= Andrew
===Multiple inheritance===
Line 21 ⟶ 19:
==Library functions and system calls==
Many [[Standard library|library]] functions, such as those in the [[C Standard Library]], act as [[Interface (computing)|interface]]s for [[Abstraction (computer science)|abstract]]ion of [[system call]]s. The ''fork'' and ''execve'' functions in [[glibc]] are examples of this. They call the [[low-level|lower-level]] ''[[Fork (operating
==References==
|