Write a program that declares two classes. The parent class is called Base that has two data members a and b to store two numbers. It also has two member functions: •The mul() function multiply two...

Write a program that declares two classes. The parent class is called Base that has two data members a and b to store two numbers. It also has two member functions: •The mul() function multiply two numbers and displays the result. •The div() function divides two numbers and displays the result. The derived class is called child class that overrides all two functions. Each function in the derived class checks the values of data members. It calls the corresponding member function in the parent class if the values are greater than 10. Otherwise it displays error message.

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here