Skip to content

UML Class Diagram


  • Class
  • Attributes
  • Operation
  • Abstract Class
  • Relationship
  • Dependencies
  • Generalization
  • Associations
    • Aggregation
    • Composition

Class: - Parrots, Pigeons, Hummingbirds, Hen, Penguin, Ostrich, all are considered as birds. - If we talk about common attributes: - Wings - color - beak - chirp_style - . . . - If we talk about behaviours - fly - like run and fly | fly low/high - chirp - shrill | loud | musical | speak like human

Here we can see following points: - attributes are like features, which contains a single value from start (it can change later), in object oriented programming world these are represented by variables - behaviours are like working, things happen inside these, in object oriented programming world, these are represented by methods (or functions) - All names mentioned above are belong to class birds, they all have attributes (features), and they all show birds behaviour (can be different, like parrot flies low but eagle flies high) - So, those all are objects of the birds class.



{% include "sample_problem.md" %}