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:
cdef cppclass Rectangle(Shape):
int width
int height
Rectangle()
Rectangle(int, int)
cdef cppclass Square(Rectangle):
......
......@@ -17,6 +17,7 @@ namespace shapes {
class Rectangle : public Shape
{
public:
Rectangle() { }
Rectangle(int width, int height)
{
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