Warforged can play any class they want, but as you'll be able to think about, fighter and barbarian are the most common. They Incorporate build and living creature traits, which regularly work towards them. They don’t have darkvision as most constructs do, but they do have their own Structure score, https://felixrnfzt.blogs100.com/28539136/the-best-side-of-dwarves-dnd-5e