Question
This lab will help you navigate designing, implementing, and testing three core concepts of OOP in C++. Write a C++ class of your choice as
This lab will help you navigate designing, implementing, and testing three core concepts of OOP in C++. Write a C++ class of your choice as a base class and additional child classes with proper member variables and functions to do the following. (You should use dynamic memory allocation as learned in the class.) Your class must include three different types of constructor functions learned in the class Your class should include functions for setting and getting the values of each member. Implement overloaded assignment operator as one of the member functions Implement the destructor function, which takes care of dynamically allocated members in the heap space. Implement inheritance and polymorphism as learned in the class Test every feature to verify the correctness of your code and output the result. Use your favorite C++ compiler and run with sample inputs to generate proper output. Get a screenshot of the result and attach it to your source code to prove your code was compiled and ran successfully. Your source code should include proper comments. Please write a code that compiles.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started