inheritance: delete either base or derived object