An instance is a specific realization of any object.
Questions tagged [instances]
516 questions
0
votes
3 answers
Python/Pygame: All Instances Still On Screen After Restart
I'm working on a side-scrolling shooter in Python and Pygame. At the beginning of play, I create a bunch of lists such as enemies[] and shots[]. When the game restarts, I have tried everything I can think of, but all the instances are still on the…

cal souza
- 3
- 2
0
votes
2 answers
Storing instance of class in another class in java
I am a beginner java programmer and I am encountering a problem.
I have marked key areas of code with '// !!', I've included the rest of the program to assist any trouble shooting.
I am trying to store an instance of Person stored in the linked list…

Mark
- 65
- 1
- 3
- 13
0
votes
0 answers
how to locate the datafile path on a particular server (with 2 instances) for a particular instance?
I am running Oracle 11g on Windows 7 machine. I have a server (suppose hostname:xyzabc2129) with 2 instances on it, one is called obcd_dev and other is called obcd_prod. I have created a tablespace and eventually a table and uploaded the data on the…

bigZbuzzzinga
- 17
- 1
- 5
0
votes
1 answer
What's the mean of "instance" in Cloud Foundry?
What's the meaning of "instance" in Cloud Foundry?
How can an app in Cloud Foundry can have many instances?

uttp
- 92
- 6
0
votes
2 answers
Java - Create instance of a class with String as name
I want to create some instances of class, just like:
Country ger = new Country();
Country usa = new Country();
...
and so on. Because I want to do this for a huge number of objects, I'd rather want to create those instances with instance names from…

user2651050
- 73
- 1
- 1
- 7
0
votes
1 answer
Having difficulties in Java with class instances calling upon methods in different class instances
Pretty new to Java. Been studying/learning it for a few weeks now. One of our assignments is to make a Chess Board. At the moment I have a class called 'ChessBoard'. This is the GUI and has a method which creates the GUI and then also instantiates…

ESloman
- 1,961
- 1
- 10
- 14
0
votes
2 answers
Manually attach one instance of SQL Server database from another SQL Server instance
I have installed two SQL Server instances, one is SQL Server 2012 and the other is SQL Server 2014.
I connected to the SQL Server 2014 instance using Management Studio and clicked "Attach", while clicking add "Locate Database Files" window is opened…

aishwarya kasi
- 1
- 1
0
votes
1 answer
How to Run Python Instantiated Class methods
Noob question on running Python file Instantiated Class Methods:
I want to run the method test_method() in the class TestClass() to verify algorithm() works.
How do I run this code from the python command line?
File Name: algo.py
import…

MyopicVisage
- 1,333
- 1
- 19
- 33
0
votes
0 answers
Java: Array of Objects overwritten by last element
I've run into an interesting problem wherein I am creating an array of objects with their values initialized in the constructors parameters, but the output (below in for loop) shows that the final element initialized will overwrite all other…

user3027864
- 81
- 1
- 10
0
votes
3 answers
Creating instances in a loop
I just started to learn about classes last week in my game dev. class. I am trying to create something that will allow me to create instances of something while in a for loop. For example, I am trying to create 5 instances of Player in a loop and…

Justin Farr
- 183
- 3
- 5
- 16
0
votes
1 answer
Querying instances contained in a list
I have created a list (dd) which contains instances of a class. I want to be able to perform queries on some of its attributes (eg. finding the smallest numeric value), but cannot find a way to do this using the functionality of the class (I feel…

Amaya López-c
- 1
- 1
0
votes
2 answers
Setting variable to an instance of an object in php
Okay, I am ripping my hair out here...
I clearly am missing something simple. I am trying to prevent database hits, so I am using a simple function that checks to see if there is an instace of the object already in memory, and if it is, returns the…

chaosaffe
- 848
- 9
- 22
0
votes
3 answers
Determine the type of a (not built in) class in python
I've got a grid representing a tessellation, which is a set of instances of the Polygon class (a class I made). I also have a Boundary class, which is the class representing the boundary of the simulation I'm running (another class I've made). Any…

QuantumFool
- 609
- 3
- 10
- 29
0
votes
0 answers
google compute can not create instance
my python version is 2.7.8
my google cloud config is:
C:\Users\sheng\Desktop>gcloud config list
[compute]
region = asia-east1
zone = asia-east1-c
[core]
account = foretribe@gmail.com
disable_usage_reporting = True
project =…

user504909
- 9,119
- 12
- 60
- 109
0
votes
0 answers
Deploying one instance of Docker container on Apache Mesos/Marathon
I have tried using Marathon framework to deploy only one instance of MySQL container on the web UI to test the functions of Apache Mesos. The problem is that it run and deployed so many containers at a time even though I've stated only one instance.…

Hans
- 451
- 1
- 6
- 20