-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLIBRARY.py
More file actions
24 lines (21 loc) · 776 Bytes
/
LIBRARY.py
File metadata and controls
24 lines (21 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# wap design a library catalogue system using inheritance take base class
# library item and derived classes book dvd and journal each derived class should have unique attributes
# and methods and ssystem should support checking in and checkout
class Library:
def __init__(self,title,author,publisher):
self.title=title
self.author=author
self.publisher=publisher
def info(self):
print(self.title)
print(self.author)
print(self.publisher)
print("""chode duniya ko rakh banake
aise launde kabhi dil na jalaate
jaha jaani kabhi uth ti ungliya
aaj wahi se h uthne janaaze""")
tit=input("Enter the title:-")
aut=input("Enter author name:-")
pub=input("Enter publisher")
obj=Library()
obj(tit,aut,pub)