Professional Documents
Culture Documents
Report
BRIEF DESCRIPTION
INTRODUCTION
AIM OF PROJECT
The aim of the airline reservation system program is to provide a user-friendly, efficient, and
secure platform for travelers to easily book and manage their flight reservations. This system
Object-Oriented Analysis and Design: Students will be able to analyze real-world problems
and design a system using object-oriented principles, including the identification of classes,
objects, attributes, and methods.
Class and Object Creation: Students will have the ability to create and instantiate classes
and objects in a manner that models the entities and behaviors
Inheritance and Polymorphism: Students will understand the concept of inheritance and
polymorphism and apply them in the system to achieve code reusability and flexibility.
Encapsulation and Data Hiding: Students will employ encapsulation and data hiding
techniques to protect the integrity of data and create well-structured classes.
Abstraction and Interface Implementation: Students will use abstract classes and
interfaces to define common behaviors and ensure consistent implementation across different
components of the system.
File Handling: Students will demonstrate proficiency in reading and writing data to files,
which is crucial for storing and retrieving reservation information.
User Interface Development: Students will create a user-friendly interface for the airline
reservation system, allowing users to interact with the system efficiently.
Documentation: Students will be able to document their code and system design effectively,
making it understandable to other developers and maintainable for future enhancements.
System Integration: Students will integrate various components of the airline reservation
system, such as flight scheduling, seat availability, and passenger information, into a cohesive
and functional whole.
Code Efficiency and Optimization: Students will optimize their code for performance,
considering factors like memory usage and execution speed.
LITERATURE REVIEW:-
A literature review on the topic of airline reservation systems implemented using Object-
Oriented Programming (OOP) reveals several key trends, concepts, and best practices in the
field. The review encompasses both academic research and industry perspectives,
highlighting the evolution and significance of OOP in airline reservation systems.
Class Design:- Create classes for each identified object, such as Passenger, Flight, and
Reservation. Define attributes (data members) and methods (functions) for each class.
Encapsulation:- Ensure data hiding and access control by using access specifiers (public,
private, protected) to protect the integrity of class data.
CODE
#include<iostream.h>
#include<conio.h>
class registration;
class details
{
public:
char fname[20],lname[20],gender[20],address[50];
int phone_no,age,c_id;
void information()
{
clrscr();
cout<<"--------------------Your Information--------------------"<<endl;
cout<<"Enter the Costomer ID=";
cin>>c_id;
cout<<"Enter your first name=";
cin>>fname;
}
getch();
}
Code Reusability:- Learning how to create reusable code components and designing classes
that can be used in various parts of your program.
Modularity:- Breaking down your system into manageable, modular components, each
responsible for a specific function, which makes your program more organized and
maintainable.
Encapsulation:- Applying the concept of encapsulation to protect the data and restrict access
to certain parts of your program.
Modular Design:- OOP allows you to break down the system into manageable modules or
classes, such as Passenger, Flight, Reservation, and Payment. This makes it easier to develop
and maintain different components of the system.
Inheritance:- Inheritance can be used to model different types of flights (e.g., domestic,
international) or passengers (e.g., economy, business class) by creating subclasses that inherit
common properties and methods from a base class.
Encapsulation:- You can encapsulate the internal details of classes, making them more
secure and preventing unauthorized access. For instance, sensitive passenger information can
be encapsulated within a Passenger class.
Abstraction:- You can abstract away complex details and present a simplified interface to the
users or other parts of the system. This is useful for displaying flight details, availability, and
pricing to customers.
Data Validation:- OOP allows you to implement data validation rules within classes. For
instance, you can validate user inputs for reservation requests to ensure they meet specific
criteria, such as available seats, correct passenger details, and valid payment information.