Question: 7. A combination lock has the following basic properties: the combination (a sequence of three numbers) is hidden; the lock can be opened by providing
7. A combination lock has the following basic properties: the combination (a sequence of three numbers) is hidden; the lock can be opened by providing the combination; and the combination can be changed, but only by someone who knows the current combination. Design a class with public methods open and changeCombo and private data fields that store the combination. The combination should be set in the constructor. Do not compile and run your code, just provide a paper copy 8. What is the difference between a final class and other classes? Why are final classes used? 9. What is an interface? How does the interface differ from an abstract class? What members may be in an interface? 10. (a) Suppose a List
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
