Top "Instance" questions

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

Easiest way to copy/clone a mongoose document instance?

My approach would be to get the document instance, and create a new one from the instance fields. I am …

mongodb mongoose instance document
Using RSpec to check if something is an instance of another object

I need a way to check if an object is an instance of another object using RSpec. For example: describe "…

ruby testing rspec instance
How to get name of MovieClip on Flash stage that was created dynamically?

There are multiple MovieClips that will be dynamically placed on stage. These MovieClips are coded to be buttons. I'm trying …

actionscript-3 instance movieclip
__init__() missing 3 required positional arguments

I'm attempting to write a code for class and am having immense trouble with classes. The problem is for us …

python class object instance traceback
How to get an existing websocket instance

I'm working on an application that uses Websockets (Java EE 7) to send messages to all the connected clients asynchronously. The …

java websocket singleton instance java-ee-7
Create an instance of a React class from a string

I have a string which contains a name of the Class (this is coming from a json file). This string …

class dynamic reactjs instance
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
How can I tell if another instance of my program is already running?

How do i tell if one instance of my program is running? I thought I could do this with a …

delphi persistence mutex instance semaphore
Python : Assert that variable is instance method?

How can one check if a variable is an instance method or not? I'm using python 2.5. Something like this: class …

python methods instance assert
Java Homework Help (Accessing Static Member via Instance Reference)

Here is my homework question: Write a class declaration for a class “Clock”. It should have instance variables for hours, …

java instance static-members