When you declare a simple property, the compiler generates the get and set accessor methods, and those names are present in the scope of your program.
英
美
- 当声明一个简单的属性时,编译器生成get和set访问器方法,并且那些名称存在于程序范围内。