object (20,013)


java How would you access Object properties from within an object method?

java How would you access Object properties from within an object method?

What is the "purist" or "correct" way to access an object's properties from within an object method that is not a getter/setter method? I know that from outside of the object you should use a getter/s…


What is the meaning of the type safety warning in certain Java generics casts?

What is the meaning of the Java warning? Type safety: The cast from Object to List is actually checking against the erased type List I get this warning when I try to cast an Object to a type with ge…


Using 'in' to match an attribute of Python objects in an array

I don't remember whether I was dreaming or not but I seem to recall there being a function which allowed something like, foo in iter_attr(array of python objects, attribute name) I've looked over the…


Are PHP Variables passed by value or by reference?

Are PHP variables passed by value or by reference?…


php Using object property as default for method property

I'm trying to do this(which produces an unexpected T_VARIABLE error): public function createShipment($startZip, $endZip, $weight=$this->getDefaultWeight()){} I don't want to put a magic number in…


c# How to RedirectToAction in ASP.NET MVC without losing request data

Using ASP.NET MVC there are situations(such as form submission) that may require a RedirectToAction. One such situation is when you encounter validation errors after a form submission and need to r…


c# Most Efficient Way to Test Object Type

I have values stored as strings in a DataTable where each value could really represent an int, double, or string(they were all converted to strings during an import process from an external data sou…


asp classic How do I traverse a collection in classic ASP?

I want to be able to do: For Each thing In things End For CLASSIC ASP-NOT.NET!…


c# Casting:(NewType) vs. Object as NewType

Possible Duplicate: Casting vs using the 'as' keyword in the CLR What is actually the difference between these two casts? SomeClass sc=(SomeClass)SomeObject; SomeClass sc2=SomeObject as SomeCla…


ajax What is Progressive Enhancement?

Jeff mentioned the concept of 'Progressive Enhancement' when talking about using JQuery to write stackoverflow. After a quick Google, I found a couple of high-level discussions about it. Can anyone r…





how array example java javascript from class string get value