Top "Instantiation" questions

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

Activator.CreateInstance() troubles

I have a factory that is supposed to create objects that inherit from class Foo at run-time. I would think …

c# class instantiation activator
Specialization of template after instantiation?

My full code is too long, but here is a snippet that will reflect the essence of my problem: class …

c++ templates instantiation specialization
In PHP 5 can I instantiate a class dynamically?

Is it possible to dynamically instantiate a class using a variable? For example is something like this possible in PHP? …

php class dynamic instantiation
Java: Extending Class At Runtime

I have the capability to extend a class at compile time, but I need to be able to create an …

java inheritance runtime instantiation
Pattern for lazy thread-safe singleton instantiation in java

the lazy thread-safe singleton instantion is kinda not easy to understand to every coder, so i wanted to create a …

java thread-safety singleton instantiation lazy-evaluation
PHP - best way to initialize an object with a large number of parameters and default values

I'm designing a class that defines a highly complex object with a ton (50+) of mostly optional parameters, many of which …

php class constructor instantiation idioms
Does System.Activator.CreateInstance(T) have performance issues big enough to discourage us from using it casually?

Does System.Activator.CreateInstance(T) method have performance issues (since I'm suspecting it uses reflection) big enough to discourage us …

.net performance instantiation activator
KeyListener in Java is abstract; cannot be instantiated?

I am trying to create a Key Listener in java however when I try KeyListener listener = new KeyListener(); Netbeans is …

java instantiation keylistener
__callStatic(): instantiating objects from static context?

I am confused about how "static" and "dynamic" functions and objects in PHP work together especially with regards to __callStatic(). …

php static instantiation magic-methods
Android SDK error: Trying instantiate a class that is not a fragment

I am hardly trying to create a simple application with a top menu and a changeable view below (by pressing …

android class sdk fragment instantiation