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
Recommended Answers
Jump to PostYou wouldn't expect to get ripped by getting someone else to go to the gym for you. You won't learn how to program by getting someone else to do your homework.
But if you are having a particular problem, please post your code and an explanation of the problem and …
All 4 Replies
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
AndreRet
526
Senior Poster
John_165
44
Junior Poster
Alisha_8
34
Light 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.