Infer class body