The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 2 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Please use // to comment for function so that I know what function is doing what kind of job because I can learn from it!!! There will be tip for detailed comments!
A c++ program that runs in Linux system.
Â
What’s needed:
makefile
final executable called main.cpp
header file and a source code file for each class
Â
Please use // to comment for function so that I know what function is doing what kind of job because I can learn from it!!! There will be tip for detailed comments!A c++ program that runs in Linux system.What’s needed:makefilefinal executable calledmain.cppheader fileand asource code filefor each classProgramThis short program covers inheritance and polymorphism.You will create a series of classes to represent some simplegeometric shapes and a small program to test your classes.class ShapeShapeis anabstract base class.Data MembersAShapehas the following private data member:acolor, which is of typestring,MethodsTheShapeclass should have the following public methods:a constructor that takes aconst string&argument and usesit to initialize the shape's color. Since theShapeclass isabstract, this constructor will only be invoked by aderived-class constructor.avirtualdestructor. The method body for this destructorcan be empty, since it does not need to delete anydynamic storage. If you don't have a virtual destructor