The supermarket chain wants to use this OOP simulation to experiment with different ways of organizing their check-out system. For example, it is possible to have different check-out counters such as cash-only or card only, or to have check-out counters for ten items or fewer.
It is also possible to have one line that serves a number of check-out counters.
Describe two advantages of using libraries of classes.
Since classes and their methods do not need to be rewritten;
Promotes abstraction;
Because reusable code exists that functions without knowledge of internal working;
Libraries contain error-free / robust code;
Promotes efficiency / organization; <marks> 2 marks </marks>
As code will be shorter / easier to read / develop;
Familiarity with libraries; <marks> 2 marks</marks>
Allow for easier maintenance / modification;
Define the term inheritance.
The derived class is called a subclass/child, and the original is called a superclass/parent;
Outline two reasons why the use of multiple programming teams in different locations may be problematic when developing an integrated software solution.
Teams may be located in different countries;
therefore have communication issues;
due to different languages;
or different time zones;
inability to discuss face-to-face;
Problems with different conventions (e.g. date format);
Managing the teams in different locations may be problematic (allow example);
Teams may not collaborate well due to personality issues;
Development time might increase;
Due to time lags between communications;
Explain one advantage of the OOP feature “inheritance” with reference to this scenario.
Note: to a certain extent mixing and matching can take place
It promotes code reuse; POSline
;
holds common data and actions that are shared by all newly developed classes;
It reduces maintenance overhead;
in this case POSline
;
allows extensibility / ability to create other classes easily;
reducing development time / costs / testing;