DO IN C++ PROGRAM: Using classes, data, methods and constructors, write a C++ program that ask the user for: -lenght l -width w -height h Solution Answer : #include <iostream> using namespace std; class Shape { public: int lenght, width, height; //data members Shape() //constructor { lenght=0; width=0; height=0; } void input() { cout<<\"\ Enter Length : \"; cin>>lenght; cout<<\"\ Enter Width : \"; cin>>width; cout<<\"\ Enter Height : \"; cin>>height; } void output() { cout<<\"\ \ Length : \"<<lenght; cout<<\"\ Width : \"<<width; cout<<\"\ Height : \"<<height; } }; int main() { Shape obj; //object declaration obj.input(); //member function call obj.output(); return 0; } .