What is instantiation exactly? via /r/learnprogramming

What is instantiation exactly?

Referring to Wikipedia's explanation… http://ift.tt/1fEl0W0

an instance is a concrete occurrence of any object, existing usually during the runtime of a computer program.

Take the following function

function doThis(param1, param2) { var sum = param1 + param2; return sum; } 

If invoke doThis() with the following

doThis(1, 1); doThis(5, 3); 

is each invocation an instance of the function declaration?

Submitted July 17, 2017 at 11:30PM by Ben_HH
via reddit http://ift.tt/2vwHFPl


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s