Question 1 of 5
A studio keeps a count of live cables on a patch panel.
(a) Write a public class Patch with a private int cables, a public constructor Patch(int n) that stores n, a public plug(int extra) that adds extra to cables, and a public getCables that returns cables. (b) Explain why plug is public. (c) Explain why cables is private.