As you have worked your way into doing projects 1 and 2, you
As you have worked your way into doing projects 1 and 2, you wentfrom typically solving the problem using a functional approach inproject #1 and then an object-oriented approach in project #2.However the object-oriented approach used in project #2 did not makeuse of a very powerful concept in object-oriented programming.That concept is Inheritance. Through inheritance you can createclasses with states and methods that can be reused by other classes thatare 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 commontraits between our aDie, aCoin and aDeckOfCards classes. Those traitscould be common properties or common methods. Those common traits canthen be ‘factored’ into a base class and then used by the derivedclasses 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
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
