Defensive skills vs Tower

If hero's have a defensive skill like Carrot D, bio D, laser D, or missile D, does this work against the Tower when attacking some1 in PvP? Does this also work against Pillars attacks?
Thank you for responses.
Thank you for responses.