Object types are used to encapsulate data and methods. Furthermore, they implement a mechanism for inheritance.