An object is any entity that can be manipulated by commands in a programming language. An object can be a value, a variable, a function, or a complex data-structure. In object-oriented programming, an object refers to an instance of a class.

learn more… | top users | synonyms (1)

0
votes
5answers
25 views

knowing the caller object or thread from static method

I have a static method of a class and which is being called from another non static method from an object or thread. Is there a way to know that from which thread or object it was called? I think it's ...
0
votes
0answers
16 views

Set one objects properties to match another

Lets say I have one object, maybe a UIImageView... it is .hidden = NO; the alpha is .alpha = 0.425; the background color is [UIColor blackColor]; Is there anyway that if I have another ...
0
votes
2answers
6 views

Defining a group of objects

Is there anyway to group objects? Say for example I have UIImageView1, UIImageView2, and UIImageView3 and I want to hide them all... do I have to type EVERY TIME UIImageView1.hidden = YES; ...
1
vote
3answers
35 views

Besides constants, when would it make sense to use static/class variables In Object Oriented languages?

Is there really any good situation where it would be nice to have all objects of a class share a variable? Besides constants, of course.
-2
votes
2answers
34 views

Get values from Object in javascript

EDITED I have a object var data={"id" : 1, "second" : "abcd"}; These are values from a form. I am passing this to a function for verification. If the property is same we can get values as ...
-1
votes
0answers
8 views

Loading JSON-formatted settings file into one or few traversable object(s) in Java for Android?

I'm wanting to have a data file containing one or more JSON objects that I can read and parse into Java objects in an Android app (similar to how PHP does it). My goal is to eventually be able to ...
0
votes
1answer
50 views

My regex doesn't work

I don't see the difference between creating a new regexp object or using /.../ because if I execute the following I get: true false alert(/^\d{4}$/.test(obj.value)+" "+(new ...
0
votes
0answers
20 views

WebMethods and handling multiple objects

Ok, tried all day to come up with a solution, and I think i've began to loose focus. I have a popup (modal) that needs to be populate by data gathered from a database. There are two sets of data; one ...
0
votes
2answers
33 views

iteration an object and hasownproperty

I was looking at a clone object function here: http://jsperf.com/cloning-an-object/2 the function is: function clone(obj) { var target = {}; for (var i in obj) { if ...
2
votes
2answers
52 views

javascript variable empty declaration or object

I know i'm most probably nitpicking but... i have the following code: var book; var i=0; i = 300; book = new CBook(); book.Title = "blahblah"; book.Contents = "lalalala"; function CBook() { ...
-1
votes
2answers
40 views

php extracting object relatives [on hold]

I have two objects that come from DB queries. I've limited them to the minimum I need for the view. They look like this : array(189) { [0]=> object(stdClass)#31 (2) { ["id"]=> ...
-4
votes
1answer
26 views

illegal start of type with for loop i can't resolve it

public class gass extends JFrame { Object[][][] data = new Object[100][100][100]; String title[] ={"Box", "Weight", "Priority"}; int i=0; int nb=100; int E1; for ...
0
votes
2answers
19 views

Add two components/objects into each panels of tableLayoutPanel programatically - C#

I have a tableLayoutPanel (size of 10x10 columns & rows added from the toolbox) and I have added single Panel into every cells so I could add two objects/components into a cell. Every cell ...
5
votes
1answer
27 views

Does cloning a prototype object provide performance improvement over creating objects from scratch?

You can see two simplified snippets below that don't vary in their outcome. Pattern 1, objects from scratch: foreach ($recipients as $recipient) { $message = new Message(); ...
0
votes
2answers
33 views

Call a method from another class(not main class)

How to call distanceTo(Point p) of Point.java into Point2.java under a method takes no parameter? There should be a way but I cannot find from my materials. Could anybody help me? It has been doing ...

1 2 3 4 5 863
15 30 50 per page