Top "Properties" questions

A property, in some object-oriented programming languages, is a special sort of class member, intermediate between a field (or data member) and a method.

How do I reference a javascript object property with a hyphen in it?

Using this script to make a style object of all the inherited etc styles. var style = css($(this)); alert (style.…

javascript properties
create object using variables for property name

Is it at all possible to use variable names in object literal properties for object creation? Example function createJSON (propertyName){ …

javascript properties object-literal
Making a generic property

I have a class that stores a serialized value and a type. I want to have a property/method returning …

c# .net generics properties
How to hide an inherited property in a class without modifying the inherited class (base class)?

If i have the following code example: public class ClassBase { public int ID { get; set; } public string Name { get; set; } } …

c# inheritance properties base-class
Setting/getting the class properties by string name

What I'm trying to do is setting the value of the property in a class using a string. For example, …

c# reflection properties
Readonly Properties in Objective-C?

I have declared a readonly property in my interface as such: @property (readonly, nonatomic, copy) NSString* eventDomain; Maybe I'm misunderstanding …

objective-c properties readonly
Hibernate hbm2ddl.auto, possible values, and what they do

I am looking at the Hibernate hbm2ddl.auto configuration property and its possible values: validate update create create-drop What …

hibernate orm properties hbm2ddl
Set attributes from dictionary in python

Is it possible to create an object from a dictionary in python in such a way that each key is …

python dictionary properties attributes initialization
"public" or "private" attribute in Python ? What is the best way?

In Python, I have the following example class : class Foo: self._attr = 0 @property def attr(self): return self._attr @attr.…

python oop properties encapsulation
C# thread safety with get/set

This is a detail question for C#. Suppose I've got a class with an object, and that object is protected …

c# locking properties thread-safety