I think by UML diagram you mean: UML Class Diagram. [there are other UML diagrams]
EER (Enhanced Entity Binding) Chart Model
Used for database design . Like class diagrams, a subclass superclass [specialization and generalization] is also supported. Thus, objects in EER diagrams have attributes not methods . Provided that they display only simple data .
Note: ER [entity-relationship] Charts are the source of EER. They are from structural analysis. Also used to model the database. How does ER become for EER? I think because of Hype's object oriented style.
UML Class Diagrams
Used for object-oriented analysis-design.
It can also be used to model databases: there are UML class profiles for it. [I think UML profiles for database projects are NOT good as ER diagrams]
But in simple words, classes are drawings in which objects were created. Thus, classes can have function methods as well as attributes . Software classes definitely have methods, but conceptual classes [used for domain modeling] cannot.
source share