We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Inheritance
- Rectangle Area
- Discussions
Rectangle Area
Rectangle Area
Sort by
recency
|
200 Discussions
|
Please Login in order to post a comment
using namespace std; class Rectangle{
}; class RectangleArea:public Rectangle { public: void read_input(){ cin>>width>>height; } void display(){ cout<
int main() { /* * Declare a RectangleArea object */ RectangleArea r_area;
}
Here is Rectangle Area problem solution in C++ - https://programmingoneonone.com/hackerrank-rectangle-area-solution-in-cpp.html
class Rectangle{ public : int width , height; void read_input(){ cin>>width>>height; } void display(){ cout<
Here's my code, pretty simple, easy to understand. The comments will help you :)