My implementation has achieved a high degree of simplicity and understandability as a result of using objects to represent different objects specified in the requirements. Each object has its own methods and attributes. The objects interact with each other to form the complete program which is easy to understand because it is modular based thus it’s easy to understand. The solution to be implemented will be flexible because each object has its own methods and attributes.
To avoid duplicate code, concept of inheritance was adopted by use of a superclass and a subclass. By using inheritance the sub class is able to inherit the properties of the superclass. The properties include all the attributes and methods making up the superclass. For example a basic implementation to be adopted is for product class and Food class. The product class will have a name and price and the mutator and accessor methods for each of the attributes. Because food has a name and price too but also has another attribute of type for warm or frozen foods.
Thus inheritance is implemented where by Food inherits all the properties of the Product class thus the food class can use all the properties of the super class. This helped eliminate code duplication. The type of inheritance implemented in the solution is single inheritance which involves one superclass and one subclass. The concept of superclass and subclass for the implementation significantly minimizes the amount of duplicate code. It also provides more flexibility in changing the code.
Task 2.2 UML class diagram
The Class diagram is used to show the static structure of a system. It models a system by showing the classes, the attributes making up the classes, the operations in the classes and any relationships existing between the relations. UML class diagrams are very useful in objected oriented programming as they can be used to show the general conceptual model of the expected application.
The following diagram shows the UML class diagram for the proposed system.
Task 2.3 Sequence diagrams
Sequence diagrams are used to show the behavioral nature of the system by showing the interaction between the user and the system through use of parallel lines from one one side to the other. THe lines are used to indicate the interactions that happen while also showing the systematic flows of the interactions and actions that are performed by each object or user.
The following diagram shows the sequence diagram for the proposed system.
To export a reference to this article please select a referencing stye below:
My Assignment Help. (2021). Software Design And Patterns. Retrieved from https://myassignmenthelp.com/free-samples/cs665-software-design-and-patterns/basic-implementation.html.
"Software Design And Patterns." My Assignment Help, 2021, https://myassignmenthelp.com/free-samples/cs665-software-design-and-patterns/basic-implementation.html.
My Assignment Help (2021) Software Design And Patterns [Online]. Available from: https://myassignmenthelp.com/free-samples/cs665-software-design-and-patterns/basic-implementation.html
[Accessed 10 April 2021].
My Assignment Help. 'Software Design And Patterns' (My Assignment Help, 2021) <https://myassignmenthelp.com/free-samples/cs665-software-design-and-patterns/basic-implementation.html> accessed 10 April 2021.
My Assignment Help. Software Design And Patterns [Internet]. My Assignment Help. 2021 [cited 10 April 2021]. Available from: https://myassignmenthelp.com/free-samples/cs665-software-design-and-patterns/basic-implementation.html.
MyAssignmenthelp.com delivers assignment help to millions of students of USA. We have in-house teams of assignment writers who are experts on wide ranges of subjects. We have appointed teams of native writers who provide assignment help to students in New York City and all over the USA. They are skilled assignment writers who successfully cater to search terms like do my assignment in the USA
Answer: Introduction Business knowledge dashboards are a backbone in the present day market scenario, and in light of current circumstances. Business clients paying little attention to ability level can utilize these capacities so as to more readily comprehend what is happening inside their organisation. Dashboards make it simple for an organization to picture their information by showing measurements, diagrams, checks, maps, rates and ...
Read MoreAnswer Big data and Internet of things Hashem, I. A. T., Yaqoob, I., Anuar, N. B., Mokhtar, S., Gani, A., & Khan, S. U. (2015). The rise of “big data” on cloud computing: Review and open research issues. Information Systems, 47, 98-115. In this paper, the researchers have been explaining the major significance of cloud computing in association with big data and the internet of things. According to researchers the, c...
Read MoreAnswer: Introduction Happiness is indefinable. Almost each person wants a happy life. However, it over and over again escapes us as we tussle with burdens of our day-to-day lives. Social researchers and philosophers have publicized that happiness has a knock on effects and benefits among them making people to be more compassionate and feeling healthier both emotionally and physically. Besides, it makes people to become more energetic, witty, ...
Read MoreAnswer: We have only one collection MOVIES that contains a number of Movie documents. Each movie document has the attributes related to it like MovieId, MovieName, Director, Leading actors etc. Apart from all these attributes that are provided by us, there is another attribute _id. This _id is a primary key attribute and it acts as a unique identifier. This _id attribute is provided by the Mongo DB itself. Movies are related to their RATINGS....
Read MoreAnswer: Assumptions and Business Rules The following business rules and Assumptions have been taken into consideration: There are various car parking areas which can consists of a number of cars. There are locations which can contain more than one employee who are involved with the organization. The people are categorised into two sub categories customer and employee and the employees are further divided into booking employees and rent...
Read MoreJust share requirement and get customized Solution.
Orders
Overall Rating
Experts
Our writers make sure that all orders are submitted, prior to the deadline.
Using reliable plagiarism detection software, Turnitin.com.We only provide customized 100 percent original papers.
Feel free to contact our assignment writing services any time via phone, email or live chat. If you are unable to calculate word count online, ask our customer executives.
Our writers can provide you professional writing assistance on any subject at any level.
Our best price guarantee ensures that the features we offer cannot be matched by any of the competitors.
Get all your documents checked for plagiarism or duplicacy with us.
Get different kinds of essays typed in minutes with clicks.
Calculate your semester grades and cumulative GPa with our GPA Calculator.
Balance any chemical equation in minutes just by entering the formula.
Calculate the number of words and number of pages of all your academic documents.
Our Mission Client Satisfaction
You did a great work. I really like the page arrangement, you follow the brief, impressed how quick you ve been with your work
Australia
prompt response and well done on the work They are professional. Legit. Customer service is excellent. Most of the time they deliver the work on time quality of the work in English and creative writing is excellent. In physics they are good .If the...
Australia
after reading the answer it seems pretty good. but still waiting for my grades. i got marks in my previous assignment.
Australia
Need to find experts in the field. The solutions were not 100% correct althought they were okay.
Australia