The real and personal estate of a person, which may pass by deed or gift, or which would, in case of the owner’s dying intestate, descend to or devolve upon his heirs or other legal representatives, may be disposed of, transferred, and passed by his last will, testament, or codicil in accordance with this part.