Challenge: People's Heritage

Complete the challenge by playing around with heritage in the computational idea of the term.

Motivation

You might have loved this chapter on polymorphism theory. This is a much more palpable concept for those who’ve learned other programming languages. And even though it isn’t very common in Clojure systems, it’s a great topic to learn about and understand how to use.

To solve the “people’s heritage” problem in this challenge, we recommend the use of the whole lesson on protocols. Even though you might be able to use multimethods, the concepts employed in protocols are more complex, so it would be very useful to exercise your skills in the implementation of protocols to improve your understanding.

Challenge

You receive a protocol called Person that has three methods: exercise, have-fun, and talk. It has the following structure:

Get hands-on with 1200+ tech skills courses.