REF Static typing for private attributes