class ca{
var vaName = "ca";
}
class cb: ca {
var vbName = "cb";
}
var item:ca = cb();
if let cbitem = item as? cb{
println(cbitem.vbName);
}
class ca{
var vaName = "ca";
}
class cb: ca {
var vbName = "cb";
}
var item:ca = cb();
if let cbitem = item as? cb{
println(cbitem.vbName);
}