Simply implement ―set accessor only, don‘t implement ―get accessor.
Syn:
Syn:
private datatype variablename;
accessmodifier datatype propertyname
{
set
{
variablename = value;
}
}
accessmodifier datatype propertyname
{
set
{
variablename = value;
}
}