Almost contact structures induced on hypersurfaces in complex and almost complex spaces