Commit 83949399 authored by daniloaf's avatar daniloaf

Fix on test 'cpp_classes'

parent 97882d65
...@@ -19,6 +19,7 @@ cdef extern from "shapes.h" namespace shapes: ...@@ -19,6 +19,7 @@ cdef extern from "shapes.h" namespace shapes:
cdef cppclass Rectangle(Shape): cdef cppclass Rectangle(Shape):
int width int width
int height int height
Rectangle()
Rectangle(int, int) Rectangle(int, int)
cdef cppclass Square(Rectangle): cdef cppclass Square(Rectangle):
......
...@@ -17,6 +17,7 @@ namespace shapes { ...@@ -17,6 +17,7 @@ namespace shapes {
class Rectangle : public Shape class Rectangle : public Shape
{ {
public: public:
Rectangle() { }
Rectangle(int width, int height) Rectangle(int width, int height)
{ {
this->width = width; this->width = width;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment