Question: C++ 1. Make a class whose objects each represent a battery. The only attribute an object will have is the battery type (one letter). Also,
C++ 1. Make a class whose objects each represent a battery. The only attribute an object will have is the battery type (one letter). Also, the class has to include the following services for its objects: determine if two batteries are the same change battery type get battery type display battery information 2. Make a class whose objects each represent a box of batteries (use dynamic memory). Also, the class has to include the following services for its objects: show what's in the box get how many kinds of batteries are in the box determine if two boxes are equal
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
