inheritance with static, virtual, non-virtual methods