-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbookNode.py
More file actions
21 lines (18 loc) · 801 Bytes
/
Copy pathbookNode.py
File metadata and controls
21 lines (18 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#+======================================================================================+
# |Author : Kolli Hrudhay
# |Package : Library Books
# |Module : bookNode.py
# |Language : Python 3.7
# |Description : This module defines the node of the tree.
# When this module is called, an Object of the class bookNode
# will be instantiated with respective attributes(properties).
# These objects form the nodes of our Binary Tree.
#
#+======================================================================================+
class bookNode:
def __init__(self, bkid, availCount):
self.bookID = bkid
self.avCntr = availCount
self.chkOutCntr = 0
self.left = None
self.right = None