title: How to create Cython cdef public class from C
body: <p>I have following test.pyx</p>
  
  <pre><code>cdef public class Foo[object Foo, type FooType]:  
     cdef public char* foo(self):  
         r = "Foo"  
         return r  
  </code></pre>
  
  <p>cython compiles that code to test.h and test.c and everything looks fine, but I can't figure out how to create <em>Foo</em> object from C-code.</p>
  
  <p>Even if I create it using Cython function: </p>
  
  <pre><code>cdef public Foo create_Foo():
     return Foo()
  </code></pre>
  
  <p>I can't figure out how to invoke <em>foo</em> method.</p>
  
  <p>Thanks.</p>