There are many ways to tell the difference between ERD and Class diagram.
For instance, ERD, otherwise known as Entity Relationship Diagram, only portrays systemic features.
On the other hand, Class Diagram displays the most vital sections of a system, the systemic and behavioural features.
In Unified Modelling Language, UML, features are shown as unencrypted text in ‘the class rectangle box’.
However, in an Entity Relationship Diagram, the features are ‘oval linked to the entity type’.
ER Diagram has relationships which are more complex than Class diagram and are more complicated to be deciphered by humans.
ER Diagram contrasts to Class diagram since it ‘maps into tables in database’ whereas Class diagram maps into actual objects.
Another distinction is that Class diagram has some relationships which are not implied and modelled in Entity Relationship Diagram.
The main segments of Entity Relationship Diagrams consist of entities, relationships and attributes whilst classes, relationships and attributes are the segments of Class Diagrams.
Hope this helps anyone!