C++ and dynamically loaded libraries having derived classes

Documentation
Login

Documentation

#ifndef __RECT_H_
#define __RECT_H_

#include <cmath>
#include <iostream>
#include <memory>

#include "my-shape.h"

class Rect : public Shape {
 public:
        virtual double Area() const;
 private:
        double TheMysteryOfCalculatingTheAreaOfARectangle(double width, double height) const;
};

#endif // __RECT_H_