Top "Instance" questions

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

An enclosing instance that contains <my reference> is required

An enclosing instance that contains is required Below is the code. positionObj is the object that I am trying to …

java instance
How can I access a private constructor of a class?

I am a Java developer. In an interview I was asked a question about private constructors: Can you access a …

java oop constructor instance
ES6: call class constructor without new keyword

Given a simple class class Foo { constructor(x) { if (!(this instanceof Foo)) return new Foo(x); this.x = x; } hello() { …

javascript constructor ecmascript-6 instance
How to create a new instance of a struct in C

In C, when you define a struct. What is the correct way to create a new instance? I've seen two …

c struct instance
Manager isn't accessible via model instances

I'm trying to get model objects instance in another one and I raise this error : Manager isn't accessible via topic …

django django-models instance django-managers
Getting name of the class from an instance

I have the following problem: I get an instance of a class passed and want to know the name of …

iphone objective-c class instance classname
Java Static vs Instance

So my coder friend hates using the static coding. Yet my Java program is full of it to link between …

java static instance
python: create instance of class in another class (with generic example)

I'm learning python via book and internet and I'm stuck on a class issue. 2 questions: How do I create an …

python class instance
JavaScript: How to create a new instance of a class without using the new keyword?

I think the following code will make the question clear. // My class var Class = function() { console.log("Constructor"); }; Class.prototype = { …

javascript oop constructor instance
PHP check for instance of DateTime?

Is this the only way to check if an object is an instance of a class, in my case of …

php class instance instanceof isinstance