Confusion over casting of classes

In reply to chandanc9:
super” is not a primary. That means you cannot use it by itself. You probably meant to use “this”. But in any case, there is no need to use $cast here as you can always make a direct assignment to a base class type variable (
m_trx
) witha handle to an extended object.