Question: c++ Q2: Write a program that defines a (value) as a base class with a set_values () function that give value to integer (val). Then
c++
Q2: Write a program that defines a (value) as a base class with a set_values () function that give value to integer (val). Then define sub-class square, that calculate the square of the value squar (). In the main, define object of square (sq) and then call the functions in this object. (25 MARKS)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
