Avail Flight Management System: An Object-Oriented Programming Approach

Verified

Added on  2024/05/17

|9
|1257
|356
AI Summary
This report details the development of the "Avail Flight Management" application, focusing on the implementation of Object-Oriented Programming (OOP) concepts like inheritance, polymorphism, and abstraction. The application, built using NetBeans IDE and a XAMPP server backend, demonstrates the practical application of these OOP principles. The report analyzes the effectiveness of the chosen OOP concepts and explores potential improvements for future iterations.

Contribute Materials

Your contribution can guide someone’s learning journey. Share your documents today.
Document Page
Object-Oriented Programming-
Coursework 2

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
1
Document Page
Introduction
The report for “Avail flight management” application is made. The report briefly discusses the
Oops concepts like inheritance, polymorphism, and abstraction. The application “Avail flight
management” is developed in NetBeans IDE. The report also discusses the usability of Oops
concepts and helps me to better understand the Oops concepts. The application uses XAMPP
server as a backend for the database to store all the necessary details use in the application. I
have taken help from my lecture notes to develop the application “Avail flight management”
system.
2
Document Page
Use of OOP concepts
For any object-oriented programming, the objects are the most important part. Objects are used
to access the methods and variables in the class. Oops, concepts are used to develop any object-
oriented program so that code has minimum complexity and it can produce a better result. For
better result, the Oops concept should be used in a program.
Some of the Oops concepts are discussed here:
a. Abstraction
b. Inheritance
c. Polymorphism
1. Abstraction
Abstraction Oops concept is used to hide the complexity of the code. Abstraction oops
principle is used so that code look simple and all the complexity hide from the user. In a
Java code object, variables and classes are used to develop the application and hide the
complexity of code and also helps to avoid the code which is repeated multiple times. As
abstraction is used to hide the complexity the user can better understand the output of
code rather than focus on how output is produced. All the unnecessary part of the code is
avoided and only the necessary part of the code is shown using the Oops concept
abstraction (Filip, 2017).
2. Inheritance
Inheritance Oops concept provides the facility that one class inherits the properties of
another class. The class which inherits the properties is called child class and the class
which got inherited is called parent class. The class can inherit the properties of another
class using the keyword extends. The properties which can inherit are variables and
methods. The private variables cannot be inherited in the child class. In inheritance, IS-A
relationship is maintained. Inheritance Oops concept is used so that common attributes
can be inherited and we don’t have to write the repeated code and can simply inherit the
repeated code in the program. In Java program, multiple inheritance is not supported only
multilevel inheritance is supported in Oops concept inheritance (Study, 2017).
3

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
3. Polymorphism
Polymorphism means when one action can be performed in more than one form. Literal
means of polymorphism is defined as poly means many and morphs mean forms.
Polymorphism can be implemented by method overloading and method overriding.
Method overloading means when two classes have a common method with the same
name. The methods can be distinguished by a number of arguments and type of
arguments. Method overriding when a subclass implements the parent class method that
is known as method overriding. Method overriding can be performed on the basis of
requirement. The basic meaning of method overriding is to override the functionality of
an existing method (Janssen, 2017).
In this assessment, abstraction is used. I have to use abstraction Oops concept so that
complexity of code can be hidden from the user and only necessary code can be visible to
the user. I think I can do better than these. I haven’t chosen inheritance but I can use in
my code so that code complexity can be reduced. Inheritance can be used so that repeated
code can be eliminated from the program. The program is running smoothly but it can be
made better using more Oops concept like inheritance and polymorphism. I think my
approach is worse because I have chosen only one Oops concept to develop this
application.
If I look back at the project I think I haven’t made the right choice of choosing the Oops
concept. I think I can make a better program by using more Oops concept like inheritance
and polymorphism. If I have chosen inheritance the complexity can be reduced and all
the repeated code can be eliminated from the program. Polymorphism can be also used in
the program so that method overloading and method overriding can be implemented in
the program to develop the application.
If I will get the opportunity to develop the application again I will try to use more Oops
concept in the program to develop the application. I will not use the same technique as I
have used in this application to develop. I will use inheritance in my code so that code
4
Document Page
complexity can be reduced and code can run smoothly using as many Oops concept can
use an application to develop.
Figure 1 Abstraction used in the program
5
Document Page
Meeting the design criteria:
I have tried my level best to cover all the design criteria and I have done my approach and
research work to develop the application. All the menus are displayed correctly, the information
is stored in database accurately and also data is fetched from the database and displayed in an
application accurately. The “Avail flight management” system is developed correctly and
covered all the functionality and requirements as given. As I have developed this application I
have learned a lot of things like Oops concepts. I can develop this application in another way by
using more Oops concept to develop the application. I can use inheritance and polymorphism
Oops concept to develop the application “Avail management system”.
6

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Conclusion
From developing this application “Avail flight management” system I have to learn and revise a
lot of things. This project has helped me to gain deep knowledge about Oops concept and its
application. The application is tested for many test cases and application is running smoothly
without producing any error. This project also helps me to get a better understanding of switch
case and it uses. As I have used switch case in the main menu system to display various menus of
“Avail flight management” system. For every menu, I have use different function for
implementation so that code complexity can be minimum and can produce a better result. And
proper JDBC connectivity is done to connect the database to the application so that data can be
stored correctly and can be easily fetched from the database.
7
Document Page
References
Filip (2017). Java Abstraction Example [online] Javatutorial. Available at:
https://javatutorial.net/java-abstraction-example [Accessed 16 Mar. 2018].
Janssen, T. (2017). OOP Concepts for Beginners: What Is Polymorphism [online] dzone.
Available at: https://dzone.com/articles/oop-concepts-for-beginners-what-is-
polymorphism [Accessed 16 Mar. 2018].
Study (2017). Inheritance in Java: Definition, Example & Syntax [online] Study.
Available at: https://study.com/academy/lesson/inheritance-in-java-definition-example-
syntax.html [Accessed 16 Mar. 2018].
8
1 out of 9
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]