Top "Object" questions

An object is any entity that can be manipulated by commands in a programming language.

How to create an object property from a variable value in JavaScript?

I want to add a new property to 'myObj', name it 'string1' and give it a value of 'string2…

javascript properties object
Build a Basic Python Iterator

How would one create an iterative function (or iterator object) in python?

python object iterator
How can I create an object and add attributes to it?

I want to create a dynamic object (inside another object) in Python and then add attributes to it. I tried: …

python class object attributes
How do I print my Java object without getting "SomeType@2f92e0f4"?

I have a class defined as follows: public class Person { private String name; // constructor and getter/setter omitted } I tried …

java string object tostring
Python class inherits object

Is there any reason for a class declaration to inherit from object? I just found some code that does this …

python class oop object inheritance
Creating object with dynamic keys

First off, I'm using Cheerio for some DOM access and parsing with Node.js. Good times. Heres the situation: I …

javascript object
Object of class stdClass could not be converted to string

I am having a problem with PHP at the moment, I am getting this error, Object of class stdClass could …

php codeigniter object stdclass
Getting the object's property name

I was wondering if there was any way in JavaScript to loop through an object like so. for(var i …

javascript object properties
How to cast Object to its actual type?

If I have: void MyMethod(Object obj) { ... } How can I cast obj to what its actual type is?

c# object types casting typeof
Add a property to a JavaScript object using a variable as the name?

I'm pulling items out of the DOM with jQuery and want to set a property on an object using the …

javascript jquery object syntax