Question: Design a safe C++ class digitalC that encapsulates, via Dependency Injection, an array of positive integers that represents a digital certificate : Array size varies
- Design a safe C++ class digitalC that encapsulates, via Dependency Injection, an array of positive integers that represents a digital certificate:
- Array size varies from object to object but is stable
- Copying is suppressed (cannot duplicate a digital certificate)
- If on, supports
- count(x) -- returns the number of times x occurs in the array
- state transition to off when a client guess(z) a unique, secret integer z that is one (special) element of the array
- supports reset()
Define this class, providing all implementation details.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
