Question:
Suppose I have a few classesdog
-specialized method while keeping the remaining make-sound
s? Something likecons
equently I have to recompile make-sound
for mammal
s and cat
s, which is fine in such a small example but quickly becomes a hassle for more complicated class structures.From what I understand,
defmethod
adds a method to a generic function, so I imagine there could be an operation to reverse it.Answer:
I think you are looking forremove-method
:If you have better answer, please add a comment about this, thank you!