What is Class diagram, why we need this in Object Oriented Programming?
Basically Class Diagram is blueprint of your application and is show relationship of different component which are present in your application and subsystem.
Class diagrams are the blueprints of your system or subsystem. You can use class diagrams to model the objects that make up the system, to display the relationships between the objects, and to describe what those objects do and the services that they provide. Class diagrams are useful in many stages of system design.
Purpose Of Class Diagrams
Shows static structure of classifiers in a systemDiagram provides a basic notation for other structure diagrams prescribed by UMLHelpful for developers and other team members tooBusiness Analysts can use class diagrams to model systems from a business perspective