Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Note: Flights and Aircrafts are too general. It has been decided to use an object oriented approach to design and implement the system. Assignment activity
Note: Flights and Aircrafts are too general. It has been decided to use an object oriented approach to design and implement the system. Assignment activity and guidance Task 1 Briefly describe the following Object oriented concepts. Provide diagrams and code snippets (you must write the code) to supplement your explanations. i) static variables and methods ii) Constructors and finalize methods iii) default modifier and information hiding iv) Interfaces Task 2 i) Create a detailed UML class diagram for the JF system using a suitable UML tool. The classes should include attributes and methods. Explain one inheritance and one composition relationships existed in your UML. Task 3 i) Implement the system using a suitable object oriented language. ii) Explain the term Polymorphism". Demonstrate, with the aid of a code snippet, how polymorphism can be achieved via method redefinition from the "inheritance" code that you have produced in task 3 - (i). iii) Provide screen shots (in addition to source code) as evidence of program execution Task 4 i) We have three different design pattern types, you want to communicate this with your team by identifying one design pattern of each type (Draw the UML and explain the purpose of the design pattern). Based on your investigation, examine the connection between Object Oriented and design patterns. ii) In each aircraft there is only one black box device to record the events of the flight. JF wants to keep a record of events by calling record method that takes a string value and save it in an array. Aircraft will create only one instance of this blackbox inside the program. Assess which design pattern could come to your assistance? Justify your answer. Provide a UML diagram and an implementation for the pattern you have recommended. Note: In the program we can say Flight.AirCraft.record("Starting the engine"); iii) JF has a system of ticketing and they want to integrate it with your new developed system. The main problem is that they do not have any documentation. You need to extract the UML diagram from the already existed code to able to do the task. Investigate how we can create a tool to extract the UML automatically from the given code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started