Marshall D. Janifer, who was an industrial arts teacher for 21 years at Cardozo High School in Washington, died Jan. 5 at Doctors Community Hospital in Lanham, Md. He was 58 and a resident of Riverdale, Md.

The cause was a heart attack, said his mother, Rose Janifer.

Mr. Janifer taught at Washington schools for learning disabled students, Sharpe Health School and Buchanan School, before he joined the Cardozo faculty. He was lead carpentry instructor at Cardozo’s Academy of Construction and Design, a public-private partnership that officially opened in 2007 to teach heating, ventilation and air conditioning, carpentry, and electrical trades.

He told the Washington Afro-American newspaper that the program had changed many students’ lives. “I don’t know how many times I have had a student who was a knucklehead as a sophomore and turn out just fine when he became a senior,” he said in 2009. “This program gives kids a purpose, and when they see that they can build things, it boosts their self-confidence. As a teacher, that is the best thing of all.”

Marshall Darrell Janifer, a native Washingtonian, was a 1974 graduate of Roosevelt High School and a 1978 industrial arts graduate of Virginia State University in Petersburg. He was a member of Kappa Alpha Psi fraternity.

Survivors include his wife of 33 years, DeBoria Reeder Janifer of Riverdale; twin sons, Darren Janifer of Bowie, Md., and Duane Janifer of Capitol Heights, Md.; his parents, Rose and Marshall Janifer of Washington; two brothers, James E. Janifer of Glenn Dale, Md., and David L. Janifer of Riverdale; and a grandson.

— Adam Bernstein