Subject Name    C++
Program Name    shape, triangle and rectangle Inheritance
Program Description    Create a base class shape use the class two store double type value that could be used to compare the area. A drive to specific classes called triangle and rectangle. From the base shape and a member in get data to the base class to initialize base data member and another function display area.
 
To Download Code, Use Ctrl+A(Select All) & Ctrl+C (Copy)
Program Code
   
Input Values(You must enter all user input value here, that you want to use during runtime)
To Run C++ Program
1. #include<iostream.h> change to #include<iostream>
2. #include<math.h> change to #include<cmath>;
3. #include<string.h> change to #include<cstring>;
4. Add line using namespace std;
These all(1 to 4) will be done automatically..., So don't worry.


 
Copyright © 2019. All rights reserved. Terms, Privacy




We use cookies to improve your experience on our site and to show you relevant advertising. By browsing this website, you agree to our use of cookies. Learn more