Methods of object-oriented programming