Difference between revisions of "Instantiation"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Created page with "=Instantiation= ==Definition== :Instantiation is the process of allocating a block of memory to a new object instance. Instantiation is the direct process of declaring a new o...")
 
(Definition)
Line 3: Line 3:
 
:Instantiation is the process of allocating a block of memory to a new object instance. Instantiation is the direct process of declaring a new object by ClassName, giving it an identifier Name, and in some cases passing initalisation arguments to the new object. For Example:
 
:Instantiation is the process of allocating a block of memory to a new object instance. Instantiation is the direct process of declaring a new object by ClassName, giving it an identifier Name, and in some cases passing initalisation arguments to the new object. For Example:
  
 +
<tabber>
 +
C#=
 
<syntaxhighlight lang="csharp" line>
 
<syntaxhighlight lang="csharp" line>
 
+
BLARG
 
</syntaxhighliting>
 
</syntaxhighliting>
 +
</tabber>

Revision as of 12:05, 15 December 2016

Instantiation

Definition

Instantiation is the process of allocating a block of memory to a new object instance. Instantiation is the direct process of declaring a new object by ClassName, giving it an identifier Name, and in some cases passing initalisation arguments to the new object. For Example:

<syntaxhighlight lang="csharp" line> BLARG </syntaxhighliting>