Open cxlove opened 8 years ago
See the commit for Issue #22
See the code in https://github.com/cxlove/DesignPattern/commit/c4f83ad3bfdbcfb654b72d7730c78f2acbe41f19#diff-5b55143b9207a351ed46782e2dd5f882R31
what I want to do in this code is to check whether the pointer is a specific subclass pointer.
such as the "instanceof" in Java
It seems can use a forward declaration. but it's also a imperfect design
See the commit for Issue #22