can not be heredity ,its acquired only
it can transmit by direct contact mainly sexual.
if u use condom then chance of spread infection is low
if u do sex with some one ,chance of spread is there
u need to consult dermatologist
it will take long time to treat wart
u must be regular in treatment