Defines both class and instance accessors for class attributes.