Does Ditto have its own Hidden Power type? and When breeding, if the parents have the same Hidden Power type, will the child have the same type also?
Ditto's Hidden Power type is based off its own IVs, so even when it transforms, it keps the original Hidden Power base power and type.
No and no. It depends on Pokémon's IVs.