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

  1. Design a safe C++ class digitalC that encapsulates, via Dependency Injection, an array of positive integers that represents a digital certificate:
  1. Array size varies from object to object but is stable
  2. Copying is suppressed (cannot duplicate a digital certificate)
  3. If on, supports
  1. count(x) -- returns the number of times x occurs in the array
  2. state transition to off when a client guess(z) a unique, secret integer z that is one (special) element of the array
  1. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!