When a man has a child by a woman whom he afterwards marries, the child, if acknowledged by the man, is, in virtue of the marriage and acknowledgment, legitimated and capable in law of inheriting and transmitting heritable property as if born in wedlock.
D.C. Code § 19-318