move class_inheritance into protected from public

Signed-off-by: Mattias Andrée <maandree@operamail.com>