Question: Building an abstract base class with pure virtual Functions. Trying to get area, volume and surface area of three different types of shapes. I need

Building an abstract base class with pure virtual Functions. Trying to get area, volume and surface area of three different types of shapes. I need to code this in C++. Please help. URGENT

Building an abstract base class with pure virtual Functions. Trying to getarea, volume and surface area of three different types of shapes. Ineed to code this in C++. Please help. URGENT Part 2 and3 of the Project. Overview In this project you are building anabstract base class, with pure virtual functions. The class is called ThreeDShape.You will then create the classes Sphere, and Box. These will allinherit publicly from ThreeDShape will implement the virtual functions. You can inlinethe member functions for trivial member functions, but you must NOT inlineall of the member functions in a class. This project will bemaking use of C++ 11 features. You need to make sure your

Part 2 and 3 of the Project.

development environment is using C++ 11. You can get this by usinga newer version of Visual Studio (2013 and newer should be OK).If you are using another development environment that uses GCC Eclipse, xcode,jGrasp, Code: Blocks and so on) you will need to specify acompiler option of: -std-c++11 or-std-c++0x This is assignment 5 part 1 andis worth 50 points. There is also a second part to this

Overview In this project you are building an abstract base class, with pure virtual functions. The class is called ThreeDShape. You will then create the classes Sphere, and Box. These will all inherit publicly from ThreeDShape will implement the virtual functions. You can inline the member functions for trivial member functions, but you must NOT inline all of the member functions in a class. This project will be making use of C++ 11 features. You need to make sure your development environment is using C++ 11. You can get this by using a newer version of Visual Studio (2013 and newer should be OK). If you are using another development environment that uses GCC Eclipse, xcode, jGrasp, Code: Blocks and so on) you will need to specify a compiler option of: -std-c++11 or-std-c++0x This is assignment 5 part 1 and is worth 50 points. There is also a second part to this assignment in a second pdf file) that is worth 50 points Building the abstract base class ThreeDShape In the base class ThreeDShape you need to have a virtual destructor and three pure virtual functions. The following are the signatures of the virtual destructor (inlined) and the three pure virtual functions. You have to supply a body (either inline or in the ThreeDShape.cpp file) for the virtual destructor. The following will be put into a header file named ThreeDShape.h. The destructor and the pure virtual functions are all public. virtual -ThreeDShape virtual long double getSurfaceArea ) const -0 virtual long double getVolume) const-0 virtual std::string to string) const-0 You will also need the following public member function bool operator

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!