- Exercises

Let's solve a few exercises around CRTP in this lesson.

Problem Statement 1

Extend the given piece of code with a Person class. A Person should have a

  • first name
  • last name

You need to create two objects of the Person class and compare these objects using relational operators.

Get hands-on with 1000+ tech skills courses.