// Online C++ compiler to run C++ program online
#include <iostream>
using namespace std;
class size{
protected:
int length;
public:
size(int l=0){
length = l;
}
void display(){
cout<< "The length is : " << length;
}
}
;
class vol : public size {
public:
vol(int l):size(l){
}
void calVol() {
length++;
}
};
int main() {
// Write C++ code here
vol v(2);
v.calVol();
v.display();
return 0;
}
