Question from the C++ - Fundamentals test

Write the definition of area out of the class in C++

Medium

In the following code, how could we write the definiton of area out of the class ?

class Rectangle {
    public:
    double hauteur;
    double largeur;
    double area() {
        return hauteur*largeur;
    }
};
Author: SamuelStatus: PublishedQuestion passed 21 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!