Top "Instance" questions

In object-oriented programming an instance is an occurrence or a copy of an object, whether currently executing or not.

How to create List<T> instance in C# file using Reflection

HI, I have a requirement to create instance for list object at runtime using reflection. For example I have 2 classes …

.net reflection instance generic-type-argument
JavaFX2 FXML how to add elements (e.g. Buttons) dynamically

So, what I want to do is, creating a custom element by using fxml and then add a couple of …

instance javafx-2 building fxml
How to "invoke" a class instance in PHP?

is there any possibility to "invoke" a class instance by a string representation? In this case i would expect code …

php class instance invoke
Is calling static methods via an object "bad form"? Why?

In a recent question, someone asked about static methods and one of the answers stated that you generally call them …

java methods static instance
Making a data type an instance of Show in Haskell

I need to make the following data type an instance of Show: data Tree a b = Branch b (Tree a …

haskell types tree instance show
Instance methods in modules

Consider the following code: module ModName def aux puts 'aux' end end If we replace module with class, we can …

ruby module instance
method objects vs function objects , Python class instances vs class

I am trying to verify the difference between instance attributes and class attributes as laid out by the Python tutorial …

python class methods instance
Determine if Python variable is an instance of a built-in type

I need to determine if a given Python variable is an instance of native type: str, int, float, bool, list, …

python variables instance
A standard way in C++ to define an exception class and to throw exceptions

I want to build a class with functions that may throw exceptions that I want to catch when I use …

c++ exception standards instance throw
Setting default/empty attributes for user classes in __init__

I have a decent level of programming, and get much value from the community here. However I have never had …

python class instance instance-variables python-attrs