Patent ID: 8826229

Claim:
A method, comprising: defining, by a computing device, a class of objects, the class of objects including: information identifying a first property, information identifying a second property, and information indicating that values for the first property are only allowed to be assigned using a constructor function of the class of objects, creating, by the computing device, an instance of an object of the class of objects, creating the instance of the object including: assigning a first value to the first property using the constructor function, and assigning a second value to the second property using the constructor function; detecting, by the computing device, an attempt to assign, without using the constructor function, a third value to the first property for the instance of the object; preventing, by the computing device, the third value from being assigned to the first property for the instance of the object based on detecting the attempt to assign the third value to the first property, for the instance of the object, without using the constructor function; and generating, by the computing device, an error based on detecting the attempt to assign, without using the constructor function, the third value to the first property for the instance of the object, the error not being generated when a fourth value is assigned, without using the constructor function, to the second property of the instance of the object.