我们能否使类的属性对public可见,但只能由某些特定类修改?例如,//thisisthepropertyholderpublicclassChild{publicboolIsBeaten{get;set;}}//thisisthemodifierwhichcansetthepropertyofChildinstancepublicclassFather{publicvoidBeatChild(Childc){c.IsBeaten=true;//shouldbenoexception}}//thisistheobserverwhichcangetthepropertybutcannot