Everyone is a bit different, but we're all a lot the same. If you're interested, here's how it works.
Balding is a complicated inheritance. It is autosomal dominant in men and autosomal recessive in the ladies. It is not a classic Mendallian pattern, like you were taught in the 4th grade. There's 2 genes: B and b. Yo momma has 2 and yo daddy has 2. You got one from each of them. Each of your parents could have any combination of B and b. That is, bb, bB, Bb, BB. For this illustration, B means Bald and b means Not bald.
If you're male, then if you are a bb, like me, you have nice hair your whole life. Anything else, you're bald. BB's can even bald sooner, but a Bb/bB will be bald by about 30. If you're female, any of these: bb, bB, Bb will have nice hair and a BB will have fine, thin hair. So, if you're a male and your momma had fine thin hair, you have at least one B and you're screwed, even if daddy still has hair. If your dad has hair and momma has "regular" hair, you have a chance at having hair, depending on if mom is a Bb or bb. That would be a 50-50 chance if mom's a Bb.
Other factors can come into play. Environmental exposures, general health, etc.