delete operation in inheritence