In object - oriented programming , a unit is often an entire interface , such as a class .
In object - oriented programming , a unit could be an individual method .
In object - oriented programming , a unit is often an entire interface , such as a class , but could be an individual method .