add cpp inherit conpt