Top "Object" questions

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

How to check if object property exists with a variable holding the property name?

I am checking for the existence of an object property with a variable holding the property name in question. var …

javascript object
How do I determine the size of an object in Python?

I want to know how to get size of objects like a string, integer, etc. in Python. Related question: How …

python object memory memory-management sizeof
How to call a Parent Class's method from Child Class in Python?

When creating a simple object hierarchy in Python, I'd like to be able to invoke methods of the parent class …

python class oop object inheritance
How to cast an Object to an int

How can I cast an Object to an int in java?

java object casting integer
Creating a copy of an object in C#

Please have a look at the code below (excerpt from a C# book): public class MyClass { public int val; } public …

c# object reference cloning
Print content of JavaScript object?

Typically if we just use alert(object); it will show as [object Object]. How to print all the content parameters …

javascript object
How to initialize an array of objects in Java

I want to initialize an array of Player objects for a BlackJack game. I've read a lot about various ways …

java arrays object initialization
Most efficient method to groupby on an array of objects

What is the most efficient way to groupby objects in an array? For example, given this array of objects: [ { Phase: "…

javascript arrays object group-by underscore.js
Convert object string to JSON

How can I convert a string that describes an object into a JSON string using JavaScript (or jQuery)? e.g: …

javascript json object
How to get a key in a JavaScript object by its value?

I have a quite simple JavaScript object, which I use as an associative array. Is there a simple function allowing …

javascript object