oop compare



oop compare
Smart pascal source code
type TMyClass = class end; var objA: TMyClass = TMyClass.Create; var objB: TMyClass = TMyClass.Create; var objC: TMyClass; if objA = objB then WriteLn('A = B'); if objA <> objB then WriteLn('A <> B'); if objA = objC then WriteLn('A = C'); if objA <> objC then WriteLn('A <> C'); objC := objA; if objA = objC then WriteLn('A = C'); if objA <> objC then WriteLn('A <> C'); {<<< RESULT - CONSOLE LOG >>> ----------------------------- A <> B A <> C A = C ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}