Computer Science · Oct / Nov 2016 · Paper 2 SL · Question 13
IBCS
As printed in the paper
The question as text
13. A further class, Codes, links each routeCode to the routeName, which contains the departure and destination stations, as shown below. public class Codes { private String routeName; // e.g. New Amsterdam – Diamond City private String routeCode; public Codes(String a, String b) { this.routeName = a; this.routeCode = b; } public String getRouteCode() { return routeCode; } public String getRouteName() { return routeName; } }
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
13(a)[3]
13(b)[7]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

