witten in object-oriented