Top "Instantiation" questions

Instantiation is the process of creating objects from a class in most object oriented and object based languages.

How to instantiate an object with a private constructor in C#?

I definitely remember seeing somewhere an example of doing so using reflection or something. It was something that had to …

c# constructor instantiation private-constructor
PHP: Fatal error: Cannot instantiate abstract class

I have an abstract database class named as: abstract class database { protected $value; } I created another abstract class abstract class …

php abstract-class instantiation
How is an instance initializer different from a constructor?

In other words, why would you need an instance initializer? What difference or advantage do you have in writing a …

java instantiation
How to instantiate an object in TypeScript by specifying each property and its value?

Here's a snippet in which I instantiate a new content object in my service: const newContent = new Content( result.obj.…

typescript syntax instance instantiation
JSF application scope instantiation and injection

Probably my question is a trivial one, but I never used an application scope bean before. I need the application …

jsf scope code-injection instantiation
PMD: Avoid instantiating new objects inside loops

I've got an issue with the PMD rule Avoid instantiating new objects inside loops. Here is some example code: import …

java loops instantiation pmd
Different ways of constructing an object in C++

I want to construct an object in the stack, using C++. Do you know what is the difference between these …

c++ instantiation constructor
Inline object instantiation and transformation in Java

I have come to Java from Visual Basic, and seem to think I have been, in many ways, spoiled :p …

java class inline instantiation
how to instantiate an object of class from string in Objective-C?

I've a String who's value is the name of the Class[MyClass] which has to be instantiated, and MyClass has …

objective-c instantiation
Why is it possible to instantiate a struct without the new keyword?

Why are we not forced to instantiate a struct, like when using a class?

c# .net struct instantiation