The myocardium is the

A. smooth lining of ventricles.
B. inner lining of atria and ventricles.
C. delicate lining of the atria.
D. muscular wall making up the bulk of the heart.