Inheritance with didSet
class A:UIView
{
var b:Int
override init(frame: CGRect) {
b = 1
super.init(frame: frame)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func bla()
{
}
}
class B:A {
override var b:Int
{
didSet
{
print("b \(b)")
}
}
func bcd()
{
}
override func bla()
{
}
}