Top "Object" questions

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

Javascript counting number of objects in object

I have an object something like: Object {0=Object, 1=Object, 2=Object} // Output from console.log(obj.Data); But there is no …

javascript object count
Comparing object properties in c#

This is what I've come up with as a method on a class inherited by many of my other classes. …

c# object properties comparison
Javascript / Chrome - How to copy an object from the webkit inspector as code

I am doing a console.log statement in my javascript in order to log a javascript object. I'm wondering if …

javascript jquery google-chrome object webkit
Which way is best for creating an object in JavaScript? Is `var` necessary before an object property?

So far I saw three ways for creating an object in JavaScript. Which way is best for creating an object …

javascript object
How do I pass an object from one activity to another on Android?

I need to be able to use one object in multiple activities within my app, and it needs to be …

android object android-activity
What is property in hasOwnProperty in JavaScript?

Consider: if (someVar.hasOwnProperty('someProperty') ) { // Do something(); } else { // Do somethingElse(); } What is the right use/explanation of hasOwnProperty('someProperty')? Why …

javascript object hasownproperty
How to synchronize a static variable among threads running different instances of a class in Java?

I know that using the synchronize keyword before a method brings synchronization to that object. That is, 2 threads running the …

java multithreading synchronization class object
How to check that an object is empty in PHP?

How to find if an object is empty or not in PHP. Following is the code in which $obj is …

php object
Deleting an object in C++

Here is a sample code that I have: void test() { Object1 *obj = new Object1(); . . . delete obj; } I run it in …

c++ object memory-management new-operator
make arrayList.toArray() return more specific types

So, normally ArrayList.toArray() would return a type of Object[]....but supposed it's an Arraylist of object Custom, how do …

java arrays object types arraylist