Study Guide Help C++

*Am I right? : Square::print();

*Am I right? : Rectangle::print();
Last edited on
Please consider this not setting in the stone but let's giving a try:

A) A is super class of B
B) B is a child of A
C) No
D) I think yes.
E) The data of A must be protected and not private
F) void A::Print()
2) I think the response it: the constructor and the destructor....
8)
#ifndef RECTANGLE_H
#define RECTANGLE_H
class Rectangle {

protected:
float height;
float width;

public:
Rectangle (const float& iHeight,const float& iWidth);
float Perimeter(const float& iHeight,const float& iWidth);
std::string Print();

};
#endif
ty
Last edited on
We're not going to do your homework for you.

Have a go at writing the code. If you come up against a specific problem, then show us your code, explain what the specific problem you're having is, and we'll help you solve it.
Topic archived. No new replies allowed.