COP 3331 USF C++ Programming with Inheritance Computer Science Task

As you have worked your way into doing projects 1 and 2, you went  from typically solving the problem using a functional approach in  project #1 and then an object-oriented approach in project #2. However the object-oriented approach used in project #2 did not make  use of a very powerful concept in object-oriented programming.That concept is Inheritance. Through inheritance you can create  classes with states and methods that can be reused by other classes that  are descended from those classes. Those classes are called “Base classes”.  Classes derived from them are called “derived” classes.In this project, you will redo project 2, but WILL HAVE TO USE INHERITANCE! However, working on project #2 you might have noticed certain common  traits between our aDie, aCoin and aDeckOfCards classes. Those traits  could be common properties or common methods. Those common traits can  then be “factored” into a base class and then used by the derived  classes through inheritance from your base class.You may have noticed that the aDie, aCoin, aDeckOfCards classes all use  an object of class Random.This suggests that all these classes could be derived from a base class handling the random aspect of these classes.Project 2 code is attached  

× How can I help you?