//public公开的,private私有的,只有在本类中访问,internal本类和子类中访问
private var _backGroundColor:String?
var backGroundColor:String?{
get{
return _backGroundColor
}
set{
_backGroundColor = newValue
}
}
private var _alpha:Float?
var alpha:Float?{
get{
return _alpha
}
set{
_alpha = newValue
}
}
网友评论