If the majority of elements on a diagram are packages, then it is a package diagram. If the majority of elements on a diagram are classes, it is a class diagram. If the majority of elements are objects (instance specifications), then it is an object diagram