0% found this document useful (0 votes)
8 views

Practical Work 04 Object Oriented Programming

Uploaded by

Aya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Practical Work 04 Object Oriented Programming

Uploaded by

Aya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Ministry of Higher Education and Scientific Research

University of Oum El Bouaghi


Faculty of Exact Sciences and Natural and Life Sciences
Department of Mathematics and Computer Science

Advanced Python Language


1st Master - AI & Data Science

Practical Work 04

E-Library Management System

Create a simple e-library management system with different types of library members, each
having unique permissions and actions.

• Library:
The Library class should manage a collection of books and support adding, borrowing, and
returning books.
• Books:
Each book should have a title, author, and availability status.
Books can be borrowed if they are available and returned when borrowed.
• Members:
Implement a base class Member to represent general library members.
Create subclasses for different types of members:
StandardMember: Can borrow books but has a borrowing limit.
PremiumMember: Can borrow books without a borrowing limit and receives
recommendations.
• Polymorphism and Method Overriding:
Use polymorphism by defining a borrow() method in each member class, where each type of
member can borrow books according to their specific rules.

Page 1 sur 1

You might also like