Lets say we have this:
class A
{
func printTheValueA()
{
print("A")
}
}
class B:A
{
func printTheValueB()
{
print("")
}
}
class C {
var a:A = B()
a.printTheValueB()
}
As in above code is it possible to use the method of class B from the reference of class A?