Top "Instance" questions

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

Create an anonymous class instance in python

Sometimes i need to create an anonymous class instance in python, just like c#: var o= new {attr1="somehing", attr2=344}; …

python instance anonymous-types
How to test same object instance in Javascript?

Say I have the following objects in Javascript: var a = { xxx: 33 }; var b = { xxx: 33 }; var c; c = a; What is …

javascript instance
Java Reflection: get instances of a given class found by entering its name?

Is it possible to get all instances of a class by entering this class's name as a string? Something like …

java oop class reflection instance
What is more efficient StringBuffer new() or delete(0, sb.length())?

It is often argued that avoiding creating objects (especially in loops) is considered good practice. Then, what is most efficient …

java instance stringbuffer performance
C# Get property value without creating instance?

Is it possible to get value without creating an instance ? I have this class: public class MyClass { public string Name{ …

c# properties instance
Should I use "this" keyword when I want to refer to instance variables within a method?

My teacher says that when I try to access an instance variable within a method I should always use the …

java scope this instance local
Prevent new activity instance after clicking on notification

application (non-wanted) behavior - application is started, some text is put into text-box and notification is created through button action. …

android android-activity instance notifications
Starting multiple upstart instances automatically

We use PHP gearman workers to run various tasks in parallel. Everything works just fine, and I have silly little …

instance gearman worker upstart
In Ruby, inside a class method, is self the class or an instance?

I know that self is the instance inside of an instance method. So, then, is self the class inside of …

ruby class instance self class-method
Where can I find the name servers of Google Compute Engine?

I have uploaded a website to my Compute Engine instance and I wanted to set the registrar to send the …

dns instance google-compute-engine nameservers google-cloud-platform