Create a C++ class called "Rectangle" with private attributes width and height, and public member functions to set and get these attributes. Include a function getArea() that calculates and returns the area of the rectangle.
Sam_163 0 Newbie Poster
Reverend Jim 4,968 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
AndreRet 526 Senior Poster
John_165 44 Junior Poster
Alisha_8 34 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.