Introduction This report gives you a brief knowledge regarding about Avail flight Management. Avail Flight Management System is dedicated flight management system with proper and precise functioning. This report gives details of the concept of OOP (i.e. Object Oriented Paradigm) and type of myriad experience which I got in developing this management system. This system helped in improvising my OOP concepts not theoretically but instead practically. This application is high-end management system with proper connectivity with its respective database. I made use of all my lecture notes simultaneously while developing Avail Flight Management system.
Use of OOP concepts Oops (Object-oriented programming system) is basic programming paradigm which is based on “objects” which contains methods and data.An object-oriented programming language is very flexible and in object-oriented programming the methods and data are combined into a single unit. The Oops concepts are (Janssen, 2017): - a.Inheritance b.Polymorphism c.Abstraction 1.Inheritance In inheritance when one class inherits the properties of another class the concept is known as inheritance. The properties include methods and data members. Inheritance concept is used to reuse the code so that repeated code part is removed in a program and the common part of the code is used using oops concept inheritance. Inheritance is implemented in Java using keyword extends. The class can inherit the properties of parent class using keyword extends. Inheritance can be used for two reasons like method overriding and for code reusability. In Java the class which is inherited is called superclass and the new class is called subclass. The inheritance used IS-A relationship. Inheritancedoesnotsupportmultipleinheritancesthroughclassitsupportsonly multilevelinheritanceandhierarchicalinheritance.Multipleinheritancescanbe implemented using interface. 2.Polymorphism In polymorphism when any single action is performed in different ways it is known as polymorphism. In polymorphism poly means many & morphs means forms. In Java polymorphism is of two types runtime polymorphism and compile time polymorphism. In Java there are two types of process in which polymorphism is implemented the process is method overloading and method overriding. In Java mainly, runtime polymorphism is used. Runtime polymorphism means when the method is override and compiler decide
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
which method to call at runtime. The overridden method can be called using the reference variable (objects) of the superclass (Savitch, 2002). 3.Abstraction Abstraction means hiding the complexity of code from the user. The functionality of code is visible to the user but the complex part of the code is not visible to the user. Means the user will focus on what is happening rather than how the process is done. For Java the abstraction can be implemented using Abstract class & interfaces. An abstract class means when any class is defined as abstract it is known as abstract class. Objects of an abstract class cannot be created. In abstract class there are two types of methods abstract methods and normal methods. Abstract methods do not have a body (Docs.oracle, n.d.). In this assessment abstraction and inheritance is used. The approach is better because the complexity of code is not displayed to the user. As in this assessment the program flows smoothly without creating any error. The user sees only simplified part of code and code is executed all the processing and complexity of code is hidden from the user. As in this assignment inheritance is used. The user class is extending the main class to use the Oops concept inheritance. Looking back at the project I think I have made the right choice of choosing the Oops concepts abstraction and inheritance. I have tried to reduce the complexity of code and also tried that the code not repeated and use the common code using the Oops concept inheritance. Abstraction is always used in any program so that an application can be developed with minimal complexity. If I do the same one again in a similar project I will not use the same approach as I have used in this assignment to complete. I will try to implement more Oops concepts in the assignment as Oops concept help to design a good object-oriented program. I will try to implement the Oops concept polymorphism in my assignment to complete.
Figure1Inheritance used in the assignment As in figure 1 user class is extending the main class the inheritance is used here.
Figure2Abstraction used in program
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
Meeting the design criteria: I have precisely take care on meeting the designing criteria as given in the documentation. The program is working properly and displaying all the menus and submenus with respect to their functioning. “Avail Flight booking” is the main menu. I have followed procedural approach regarding completion of this project. While developing this management system, I get to know about various other and optimized methods of doing the same thing. This experience helped me to get to know about the use of “Switch case”. With this experience, I made use of Functions instead of performing some procedure repeatedly in my application project. Proper JDBC Connectivity is done in storing data in the database and fetching data back from the database.
Conclusion Avail Flight Management system has given me a valuable experience. This management system helped me to get all my java concepts polish. This flight management system is working properly against all the possible test cases. This system covers all the major functionalities as dedicatedto the documentation. This system helped me out in dealing with various OOP concepts practically. The system is able to successfully booking all the tickets without any anomaly. The system is fully equipped with properly cancelingof tickets. More developments are possible with a system with the change of time.
References Docs.oracle (n.d.).Abstract Methods and Classes (The Java™ Tutorials > Learning the Java Language > Interfaces and Inheritance). Docs.oracle. Available at: https://docs.oracle.com/javase/tutorial/java/IandI/abstract.html (Accessed 7 Mar. 2018). Janssen, T. (2017).OOP Concepts for Beginners: What is Polymorphism. Stackify. Available at: https://stackify.com/oop-concept-polymorphism/ (Accessed 7 Mar. 2018). Savitch, W. (2002).Inheritance in Java.Informit. Available at: http://www.informit.com/articles/article.aspx?p=26430 (Accessed 7 Mar. 2018).