We have all come across the Linked List Data Structure.
I have created a Phonebook project using C++.
It uses the the Object Oriented Programming Concepts and Classes and Objects like Friend Function, Friend Class, Access specifiers, etc.
1. User Defined Data Structure using Class to store the details.
i. Name
ii. Contact Number
iii. Email Address
2. Previous and Next Pointers to store the addresses of previous and next person in phonebook.
3. Created a Utility Class that is declared as a Friend Class that contains all the utility functions to perform operations.
4. Menu Driven Program that allows user to
i. Display the Contact Details in the Phonebook.
ii. Insert New Contact.
iii. Update Details.
iv. Delete Contacts.
v. Search
Brief:
I have created a node class to store the data and used an utility class to perform all the operations.
This utility class has been decalred as a friend class to the node class.
I have used Doubly Linked List to store maintain the connections with the previous and next Contact in the Phonebook.