将属性拆分为两部分:第一部分 (
readonly
) 在接口中声明,第二部分 (
readwrite
) 在私有类别中声明。