Raymond Weil, a European manufacturer of premium watches, is…

Raymond Weil, a European manufacturer of premium watches, is trying to compete in the U.S. market with other fine watch brands. Its corporate website contains the following notice: “RAYMOND WEIL products are sold by official dealers only. The RAYMOND WEIL International Guarantee is offered exclusively to consumers in possession of a watch purchased from an official dealer….” In the United States, Raymond Weil watches are not available in every jewelry or department store. For example, in large cities such as Boston, Washington, D.C., and San Francisco, there are only three retailers in each city that are official Raymond Weil dealers. Raymond Weil seems to be using:

Write the declaration for class D , which is derived from cl…

Write the declaration for class D , which is derived from class B in the former question . The class’s membersshould be:• q , a float . This variable should not be accessible to code outside the class but   should be accessible to member functions in any class derived from class D .• r , a float . This variable should not be accessible to code outside the class, but   should be accessible to member functions in any class derived from class D .• setQ , getQ , setR , and getR . These are the set and get functions for the member   variables q and r . These functions should be accessible to code outside the class.• calc , a public member function that overrides the base class calc function. This   function should return the value of q times r .