Thursday, October 18, 2012

Library Management System - Class Diagram

UML Class diagram for Library Management System is shown below. The various Classes involved in the system are:

Class: Books, Librarian, User, Publisher, Reference Book, General Book, Book Bank, Student, Faculty.

Here, in this system there could be two types of users: Student and Faculty. Both use to share many of the properties and methods. So, we defined a new class that is user and from it both student and faculty class inherits properties and methods. Hence, User is basically an abstract class whose object directly can't be created.

Similarly, Reference Book, General Book and Book Bank all three classes share many of its attributes so, we generalized all the three classes with super class Books and from it all the other three classes inherits methods and properties. Unlike User class, Books class is not an abstract class. We can create as well as instantiate its objects directly.

The Class diagram for Library Management System is shown below:-

Kindly post your comments and queries related to the article.

 Related Articles
 Class Diagram Examples

7 comments:

  1. its so0 useful

    thank you so much ^_^

    ReplyDelete
    Replies
    1. Hi Izzat, I put a comment below that could be useful for you. ^^

      Delete
  2. Hi Amit, nice post! I think your class diagram is really interesting! I designed a copy of it with an online UML modeler called GenMyModel. It's directly inspired from yours. It may help your readers to get a usable/clonable version (to be adapted or to bootstrap their development project). GenMyModel helps you design UML-compliant models and generates code, from a web-browser!
    The UML model is public so that everyone can read and clone it:
    - the web page: http://app.genmymodel.com/class-diagram/examples/Library-System
    - the link to get a clone: http://app.genmymodel.com/genmymodel?clonedProject=de9f0384-d089-4202-9dd0-6f93aab6a937

    Regards,
    Mengjie
    :-)

    ReplyDelete