In programming, instantiation is the creation of a real
instance or particular realization of an abstraction or
template such as a
class of
objects or a computer
process. To instantiate is to create such an instance by, for example, defining one particular variation of object within a class, giving it a name, and
locating it in some physical place.
1) In object-oriented programming, some writers say that you instantiate a class to create an object, a concrete instance of the class. The object is an executable file that you can run in a computer.
2) In the object-oriented programming language, Java, the object that you instantiate from a class is, confusingly enough, called a class instead of an object. In other words, using Java, you instantiate a class to create a specific class that is also an executable file you can run in a computer.
3) In approaches to data modeling and programming prior to object-oriented programming, one usage of instantiate was to make a real (data-filled) object from an abstract object as you would do by creating an entry in a database table (which, when empty, can be thought of as a kind of class template for the objects to be filled in).
Contributor(s): John MacLeod
This was last updated in May 1998
Dig Deeper
-
Backing up to local disk or tape can protect against the accidental destruction of a file but will do nothing to protect you when your facility suffers fire or flooding. Remote backup provides a better solution. This tip looks at two possibilities for remote backup: Choosing an outsourced remote backup service, or using software to do your own backups to an offsite facility.
-
Learn how attackers are using the widespread deployment of low-cost VoIP to leverage phishing attacks.
-
Is the government listening to your VoIP traffic? Can other companies spy on your WAN? It may sound like a paranoid conspiracy theory, but it's not that far out, technologically speaking. In this tip, Tom Lancaster looks at just how exposed your WAN traffic may be.
-
People who read this also read...