I find your question a little vague. Have you read the documentation on the Clojure website?
http://clojure.org/multimethods
I find examples that are pretty easy to follow:
user=> ::rect
:user/rect
user=> (derive ::rect ::shape)
nil
user=> (parents ::rect)
user=> (derive ::square ::rect)
nil
user=> (ancestors ::square)
user=> (isa? ::square ::shape)
true
There is also this blog post with a more “real” example:
http://www.prodevtips.com/2010/06/20/clojure-inheritance/
source
share